Perspective 3D Graphics

Anything QL Software or Programming Related.
stevepoole
Aurora
Posts: 889
Joined: Mon Nov 24, 2014 2:03 pm

Re: Perspective 3D Graphics

Post by stevepoole »

Hi Per,

In a complex development we always tend to suspect bugs to be due to complex causes...

But here the problem was a simple one, too obvious for me to envisage.

Thank you so much for finding the problem : simply an OVER -1 in the second program, XORing output in the first and making it fuzzy !

Now I can relax and get on with developing the job in hand... knowing that the toolkits are reliable.

Steve.
_____________


User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: Perspective 3D Graphics

Post by pjw »

stevepoole wrote:<>
Thank you so much for finding the problem : simply an OVER -1 in the second program, XORing output in the first and making it fuzzy !

Now I can relax and get on with developing the job in hand... knowing that the toolkits are reliable.

Steve.
_____________
Glad I could help :) Keep QLing!


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
stevepoole
Aurora
Posts: 889
Joined: Mon Nov 24, 2014 2:03 pm

Re: Perspective 3D Graphics

Post by stevepoole »

Hi Folks,

Work on the program is now progressing fairly well. A user interface has been added to allow you to manipulate the 3D image.

You may spin it around any axis, or orbit around it on a circular trajectory, choosing the scale you prefer.

You can look up or down onto it, (but only with the frontal axis, or the output gets distorted).

There is a demo mode too, using randomised inputs. Otherwise, carefully choose the interface values to get nice output.

There is still some more work needed before release, including meaningfull documentation, as there are a lot of variables in the code....

Steve.
Capture d’écran (669).png


stevepoole
Aurora
Posts: 889
Joined: Mon Nov 24, 2014 2:03 pm

Re: Perspective 3D Graphics

Post by stevepoole »

Hi Folks,

Just finished debugging the real-time object rotational functions, which now work fine, and incorporating simple text.

Next job will be to adapt wrapped textures onto facettes, functions already demonstrated which need to be merged in.

The attatched tumbling object is simply 'centered' on the output window. It needs to be parametered to follow trajectories too....

More mergeing work in progress. Steve.
Capture d’écran (674)bis.jpg


stevepoole
Aurora
Posts: 889
Joined: Mon Nov 24, 2014 2:03 pm

Re: Perspective 3D Graphics

Post by stevepoole »

Hi Folks,
'Wrapping text' onto ANY facette has now been done. 'Texture-wrapping ' will ,be the next stage....

(By textures, I mean grabbing any part of what is on the Window#2.)

It would be nice to be able to grab from buried windows, but that will have to wait somewhat.

Regards, Steve.
Capture d’écran (676)bis.jpg


stevepoole
Aurora
Posts: 889
Joined: Mon Nov 24, 2014 2:03 pm

Re: Perspective 3D Graphics

Post by stevepoole »

Hi Folks,
Wrapping Window#2 graphics onto the tumbling cube now works ok, but needs a little fine-tuning to be pixel-perfect.

By only rastering every other pixel, we get 'transparent windows' on the cube.... and much faster operation, but black moire effects !

Next job will be to wrap different images onto many faces of the tumbling cube. The code is all there, but needs some adjusting....

Regards, Steve.
Capture d’écran (679).png


stevepoole
Aurora
Posts: 889
Joined: Mon Nov 24, 2014 2:03 pm

Re: Perspective 3D Graphics

Post by stevepoole »

Hi Folks,
Spent a lot of time simplifying the code, which was originally three merged programs.

Now much faster tumbling, (if you reduce output definition). Scaling works ok too.

Will have to reorganise the code again for multiple facettes, the next job.

The user interface will depend on the final version emergeing.... but many adaptations in store.....

Regards, Steve.
Capture d’écran (680).png


martyn_hill
QL Wafer Drive
Posts: 1068
Joined: Sat Oct 25, 2014 9:53 am

Re: Perspective 3D Graphics

Post by martyn_hill »

Good morning Steve!

I just wanted to say how impressed I am at each stage of your development of these ideas - and your generosity in taking the time to sharing them here!

Please don't stop :-)


User avatar
pjw
QL Wafer Drive
Posts: 1608
Joined: Fri Jul 11, 2014 8:44 am
Location: Norway
Contact:

Re: Perspective 3D Graphics

Post by pjw »

Looking promising! :)


Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
User avatar
Andrew
QL Wafer Drive
Posts: 1033
Joined: Tue Jul 17, 2018 9:10 pm

Re: Perspective 3D Graphics

Post by Andrew »

Looks very interesting! I cannot wait to see the code - there will be a lot to learn from.


Post Reply