Jump to content


Photo

Getting into 3d


  • Please log in to reply
6 replies to this topic

#1 packocrayons

packocrayons

    GMC Member

  • New Member
  • 95 posts
  • Version:GM8

Posted 15 May 2012 - 12:35 AM

I'm looking at building a 3d remote control boat simulator (I build them for my main hobby) but I have never done any 3D programming.
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
  • 0

#2 The Legend

The Legend

    Unashamed

  • GMC Member
  • 1062 posts
  • Version:GM:Studio

Posted 15 May 2012 - 10:49 PM

Judging by the forum rules you should have put this int the novice and intermediate forum. This forum is for Advanced 3-D users. Try reposting or you can just ask a mod to move ya instead of closing the topic.
  • 0

#3 Dimidoosie

Dimidoosie

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM8

Posted 15 May 2012 - 11:34 PM

thesivart on youtube has some pretty sweet video tutorials - that's how I learned how to make 3D games with Game Maker, anyway... Here's the link to his channel:

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.

  • 0

#4 packocrayons

packocrayons

    GMC Member

  • New Member
  • 95 posts
  • Version:GM8

Posted 16 May 2012 - 12:20 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
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.

  • 0

#5 Dimidoosie

Dimidoosie

    GMC Member

  • GMC Member
  • 75 posts
  • Version:GM8

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.
  • 0

#6 Follomania

Follomania

    Unum Mirabile

  • GMC Member
  • 445 posts
  • Version:GM:Studio

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.
  • 0

#7 packocrayons

packocrayons

    GMC Member

  • New Member
  • 95 posts
  • Version:GM8

Posted 16 May 2012 - 09:22 PM

That worked, thanks!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users