Page 4 of 5

Re: 3D Objects in Game Editor

PostPosted: Mon Jan 30, 2012 11:50 pm
by Hblade
This is Fascinating.

Re: 3D Objects in Game Editor

PostPosted: Tue Jan 31, 2012 2:28 am
by SuperSonic
tintran wrote:thanks,
but i don't know how to decide which ones are at the back and the front, do you?

I don't know the code that you would have to use but I know the basic concept. You know what normals are right? Well if not, each face in a 3d model has what's called a normal. The normal tells the computer which side of the face is the outside. No when the camera is on the side that is facing out, the face gets rendered. However, when the camera is behind the face, it doesn't. Does that kinda make any sense? :roll:

Re: 3D Objects in Game Editor

PostPosted: Tue Jan 31, 2012 4:39 am
by tintran
the concept makes sense but i don't know how to calculate normals, since in the code it doesn't distinguish which side the normal is facing.

Re: 3D Objects in Game Editor

PostPosted: Tue Jan 31, 2012 4:27 pm
by SuperSonic
tintran wrote:the concept makes sense but i don't know how to calculate normals, since in the code it doesn't distinguish which side the normal is facing.

Well, this may be helpful. Not sure though :P
http://en.wikipedia.org/wiki/Normal_%28geometry%29

Re: 3D Objects in Game Editor

PostPosted: Tue Jan 31, 2012 7:17 pm
by tintran
using Newell's Method at http://www.opengl.org/wiki/Calculating_a_Surface_Normal
and only render when normal.z <= 0 (facing camera since camera is looking at +z direction).

Re: 3D Objects in Game Editor

PostPosted: Tue Jan 31, 2012 9:08 pm
by SuperSonic
I tried it out and it works! I was even able to load cessna.obj :shock:

+1 :wink:

Re: 3D Objects in Game Editor

PostPosted: Wed Feb 29, 2012 5:55 am
by Clokio
Another way, is Anime Studio pro.
In blender, your animate, adjust your lighting etc.. you bake your animation. make .avi.
Import the movie in anime studio.
Export frame by frame.
Import and play it in GE. :wink:

Fragmotion can do it too. But it can import the model and export sprite from 3D.

Re: 3D Objects in Game Editor

PostPosted: Wed Feb 29, 2012 5:58 pm
by Hblade
Remarkable, outstanding, truely a work of professionalism. This is epic dude. The polygon rendering proves that the processor alone can handle a little bit of 3D. Just imagine if we had someone like this guy programming OpenGL updates or DirectX Updates. He'd find the bugs that nobody else sees and improve 3D All together.

Re: 3D Objects in Game Editor

PostPosted: Wed Feb 29, 2012 9:01 pm
by tintran
I just found explaination and code on the net and worked it in there. I know nothing openGL or DirectX.

Re: 3D Objects in Game Editor

PostPosted: Wed Feb 29, 2012 9:12 pm
by Hblade
You have an amazing ability. To find code that isn't really compatible with Game Editor and make it compatible means you have the brain of a genius. +1

Re: 3D Objects in Game Editor

PostPosted: Thu Mar 01, 2012 7:56 pm
by tintran
Genius? :lol:
if that was true, i'd have texture mapping working and do a real 3D game like Halo.

Re: 3D Objects in Game Editor

PostPosted: Thu Mar 01, 2012 9:00 pm
by Hblade
Hahaha now that isn't possible in Game Editor :P.

However, if you want to test your skill, try making a character walk cycle (even if its wireframe). And the texture can come from a BMP loader probably, like this only modified to fit your needs:
viewtopic.php?f=6&t=5778&p=40393&hilit=bmp+loader#p40393

Im sure a BMP loader has been mentioned here though, can't remember.

Re: 3D Objects in Game Editor

PostPosted: Fri Mar 02, 2012 12:07 am
by tintran
I haven't come across anything on the net that explain the process of texture mapping in simple terms that i can absorb.

Re: 3D Objects in Game Editor

PostPosted: Fri Mar 02, 2012 12:22 am
by SuperSonic
Clokio wrote:Another way, is Anime Studio pro.
In blender, your animate, adjust your lighting etc.. you bake your animation. make .avi.
Import the movie in anime studio.
Export frame by frame.
Import and play it in GE. :wink:

Fragmotion can do it too. But it can import the model and export sprite from 3D.

Yes, but that only works for animations. Tintran was trying to make something that could load any 3d model and display it without having to have a pre-render :P

Re: 3D Objects in Game Editor

PostPosted: Fri Mar 02, 2012 4:18 am
by Clokio
SuperSonic wrote:
Clokio wrote:Another way, is Anime Studio pro.
In blender, your animate, adjust your lighting etc.. you bake your animation. make .avi.
Import the movie in anime studio.
Export frame by frame.
Import and play it in GE. :wink:

Fragmotion can do it too. But it can import the model and export sprite from 3D.

Yes, but that only works for animations. Tintran was trying to make something that could load any 3d model and display it without having to have a pre-render :P

:oops: :oops: