Getting into 3d
#1
Posted 15 May 2012 - 12:35 AM
I looked around and I can't seem to find any write ups on how 3d works, why it works, and how to do it all. All I can find are .gmk files with 3d implicated, which really doesn't help me because I need to know the concepts. are there any PDF books I can download or big write ups on how it actually works anywhere?
(I'm looking for a pretty in depth, 30-90 minute read on the stuff)
Thanks
#2
Posted 15 May 2012 - 10:49 PM
#3
Posted 15 May 2012 - 11:34 PM
http://www.youtube.com/user/thesivart
If this link is broken, tell me, and I'll check into it for you. Browse around the channel, because it's probably right up your alley - There's even a video tutorial for beginners to 3D.
3D can be either really hard, or really simple, depending on how hard you make it for yourself. It's actually quite fun to get your 3D engine going, and the sense of accomplishment you get really warms your soul. I used to use D&D for everything, but I eventually started using GML for more things, just by looking at these videos. However, some things that you can do with D&D, you can't really do directly with GML, I found.
- Dylan Heisner
Edited by Dimidoosie, 15 May 2012 - 11:41 PM.
#4
Posted 16 May 2012 - 12:20 AM
Thanks for the link.
Mod please move this to the appropriate forum
Quick question, my lighting seems to be the opposite of what it should be, for example what should be shadowed is actually the color of my lighting.
heres the code:
d3d_set_lighting(true)
d3d_light_enable(1,true)
d3d_light_define_point(1,0,0,50,9999,c_red)
I tried the red to see if it would make a difference, but it's still the same.
Edited by packocrayons, 16 May 2012 - 01:23 AM.
#5
Posted 16 May 2012 - 01:08 AM
Man, 3D is much simpler than I thought it would be, it's just adding a z value to everything. I watched the starter video and i've got a pretty good handle on the basics, I'll whip up a basic movement engine for the simulator and then start working on the things that play a factor on the ride attitude of the boats.
Thanks for the link.
Mod please move this to the appropriate forum
You're welcome! That's pretty much the entirety of making 3D games in game maker. Probably the hardest part is drawing models using GML. That takes quite a bit of trial and error. Basically, I make changes to the model and test the game every time I need to see how it looks. Sometimes my mind farts and I forget how drawing works, then my models look funky until I fix them. Working in 3D is mostly trial and error when working in game maker unless you can find visual drawing and editing programs for game maker. Thankfully, you can find tons of those here in the GMC.
#6
Posted 16 May 2012 - 03:08 AM
Quick question, my lighting seems to be the opposite of what it should be, for example what should be shadowed is actually the color of my lighting.
Your normals are flipped the wrong direction. If you're using the built-in ellipsoids, cubes, etc., then you need to have the smallest values for the x, y, and z arguments first.
d3d_draw_block(-1, -5, 2, 5, 3, 9, 1, 1)
If you're drawing primitives or models, just flip the normals manually.
#7
Posted 16 May 2012 - 09:22 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











