3D Objects in Game Editor

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Re: 3D Objects in Game Editor

Postby Hblade » Mon Jan 30, 2012 11:50 pm

This is Fascinating.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 180 Give a positive score

Re: 3D Objects in Game Editor

Postby SuperSonic » Tue Jan 31, 2012 2:28 am

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:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1444
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: 3D Objects in Game Editor

Postby tintran » Tue Jan 31, 2012 4:39 am

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.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: 3D Objects in Game Editor

Postby SuperSonic » Tue Jan 31, 2012 4:27 pm

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
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1444
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: 3D Objects in Game Editor

Postby tintran » Tue Jan 31, 2012 7:17 pm

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).
Attachments
frontpoly.zip
(450.22 KiB) Downloaded 119 times
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: 3D Objects in Game Editor

Postby SuperSonic » Tue Jan 31, 2012 9:08 pm

I tried it out and it works! I was even able to load cessna.obj :shock:

+1 :wink:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1444
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: 3D Objects in Game Editor

Postby Clokio » Wed Feb 29, 2012 5:55 am

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.
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: 3D Objects in Game Editor

Postby Hblade » Wed Feb 29, 2012 5:58 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 180 Give a positive score

Re: 3D Objects in Game Editor

Postby tintran » Wed Feb 29, 2012 9:01 pm

I just found explaination and code on the net and worked it in there. I know nothing openGL or DirectX.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: 3D Objects in Game Editor

Postby Hblade » Wed Feb 29, 2012 9:12 pm

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
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 180 Give a positive score

Re: 3D Objects in Game Editor

Postby tintran » Thu Mar 01, 2012 7:56 pm

Genius? :lol:
if that was true, i'd have texture mapping working and do a real 3D game like Halo.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: 3D Objects in Game Editor

Postby Hblade » Thu Mar 01, 2012 9:00 pm

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 180 Give a positive score

Re: 3D Objects in Game Editor

Postby tintran » Fri Mar 02, 2012 12:07 am

I haven't come across anything on the net that explain the process of texture mapping in simple terms that i can absorb.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: 3D Objects in Game Editor

Postby SuperSonic » Fri Mar 02, 2012 12:22 am

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
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1444
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: 3D Objects in Game Editor

Postby Clokio » Fri Mar 02, 2012 4:18 am

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:
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

PreviousNext

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest

cron