Search found 799 matches

by paul doe
Oct 12, 2017 3:50
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

@Paul Doe, Essentially I am still interested in the subject so I will still spend time trying to get my head around it all. No prob. It can be daunting at first, indeed. Just ask, no matter how trivial the question may look. Other people may have the same questions, so we all benefit from them. @th...
by paul doe
Oct 12, 2017 0:41
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

UPDATE: some bugfixes in camera.bas. Check the corresponding post. And there you have it, your own 3D playground. Read the comments in the code to see how it works. Should you have any questions, or need some explanation on what the code does, I'm all ears ;-) You get an A+ on the code. It does exa...
by paul doe
Oct 11, 2017 5:02
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

So, you will need to have, in the same folder: platform.bi core.bi math.bi vec4.bi mat4.bi arrayList.bi utility.bi camera.bas object.bas Once you've got all that assembled, copy and paste this demo code, in the same folder: camera test.bas #include once "fbgfx.bi" #include once "platf...
by paul doe
Oct 11, 2017 4:55
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

vec4.bi #ifndef __vec4__ #define __vec4__ #include once "math.bi" /' homogeneous 4 tuple vector type it is meant to be used as an homogeneous 3D vector (like the ones used by OpenGL or Direct3D) conceptually, they are to be interpreted like this: | x | | y | | z | | 1 | which is known as a...
by paul doe
Oct 11, 2017 4:49
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

camera.bas #include once "platform.bi" '' platform specific definitions #include once "core.bi" '' core functions and defines #include once "math.bi" '' math functions and constants #include once "vec4.bi" '' vec4 type and operations #include once "mat4.b...
by paul doe
Oct 11, 2017 4:45
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

Demonstration without enough explanation for my programming limitations. What I tried to do was modify your code to produce the three axes of the object (without the object). That is the axes were the object. I tried to make the z blue the x red and the y green but they appear to be random colors. ...
by paul doe
Oct 11, 2017 4:35
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

dafhi wrote:@paul doe - Very intrigued and inspired by your offerings

Hi dafhi

Glad to hear that. Which one in particular sparkled your interest?
by paul doe
Oct 11, 2017 4:33
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

@ paul doe This problem disappears if you use matrices I couldn't agree with you more. And not only that, using matrices avoids gimbal lock in my example you can see it encounter gimbal lock by first rotating 90 degrees on the x axis, then 90 on y axis and then stop at 89 on the z. when you get to ...
by paul doe
Oct 10, 2017 17:19
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

Rotating and moving about a 2D world is something I have done a lot of. Everything from Asteroids to raycasting dungeons (pseudo 3D but looked great with textured floors, walls and ceilings) . It was only when I thought about moving the viewer up into the Z axis I had problems. I call z the up axis...
by paul doe
Oct 10, 2017 3:25
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

Say, I think that this little bit of code (in 2D) may help you understand the different coordinate spaces that you need to manage. The demo is a very simple shape, that rotates around an arbitrary point, and shows you how the coordinate spaces relate to each other. As much of the code will be used i...
by paul doe
Oct 10, 2017 1:22
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

Hi, BasicCoder2 Slow progress but have been working my way through some 3D tutorials trying to resolve the 3D rotation about an arbitrary axis coding problem when all I have found is complex math only explanations I can't translate into actual FreeBasic code. The problem you're having has to do with...
by paul doe
Oct 09, 2017 23:34
Forum: Community Discussion
Topic: Guilty as charged
Replies: 73
Views: 4071

Re: Guilty as charged

Hi owen, I am getting old and tired and may not be able to do much more on my cad stuff. I wanted to make sure I said thanks to the FB community and to leave words of encouragement. I am guilty as charged because my code is incorrect. OMG, I hope that this meltdown wasn't caused by me. In my respons...
by paul doe
Oct 09, 2017 23:08
Forum: Community Discussion
Topic: Demo section for forum?
Replies: 7
Views: 742

Re: Demo section for forum?

Hi, BasicCoder2 @David Watson, You may want to copy/paste and play with it again as I have just fixed the rotation bug!! The axes must move with the planet, they are not absolute coordinates. Dodicat has mastered the 3D math in his demos but I still have to get up to speed including making the code ...
by paul doe
Oct 08, 2017 11:05
Forum: Beginners
Topic: ScreenRes & Cursor problem-What did I miss ? [EXPLAINED]
Replies: 61
Views: 2210

Re: ScreenRes & Cursor problem-What did I miss ? [EXPLAINED]

Trinity: Don't worry if this form of coding (being object-oriented or not quite, but kind of) seems uncomfortable to you. I started with QuickBasic back in the early 90s and QB did not have these features. I taught myself some C later on, but even though I had a C++ compiler, I would use it as a C ...
by paul doe
Oct 08, 2017 5:12
Forum: Projects
Topic: 3d without openGL
Replies: 49
Views: 3106

Re: 3d without openGL

Hi BasicCoder2 I'm preparing something for you. When I finish it, I will post it here or on a separate thread, if you prefer. The code is relatively complicated (all 3D stuff is), but we can review it, step by step. Just not right now, as I'm too drunk. But as soon as I finish, I will let you know, ...

Go to advanced search