Need some 3D help
Author |
Message |
FunkyMunky
|
Posted: Fri Dec 15, 2006 2:44 pm Post subject: Need some 3D help |
|
|
I've been making a 3D engine, insipred by some great work by some people on this site .
My first help would be on how to do face sorting so the back faces are rendered first and the front faces are rendered last. I've looked at some other engines and ican't make out how it works so an explination would be nice.
The next thing i woudl like to ask is how to convert common object files like .obj to .raw format becasue thats what my engine uses. If its not possible then how would i be able to import .obj into turing?
A final thing would be if someone could possibly help me out with back face culling so the faces that don't show aren't drawn to save resources.
I got texturing to work but curently i have to draw a square for every single pixel in the texture to get 3d texturing to work. Its a resource hog, so is this the only way to do it in turing?
anyways thats for any help you can give in advanced |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Ultrahex
|
Posted: Fri Dec 15, 2006 6:24 pm Post subject: (No subject) |
|
|
1. Face Sorting is called Z-sort ... search up Z-sort algorithm or something like that on google to figure out how it works.
2. There may be converters for OBJ to RAW, but other then that... RAW files are not actually a type of file, they are just a listing of points in sets of 3 (its much like .txt ... it could actually contain a C program etc...)
3. Back Face Culling -- Just Look Up Algorithm there is a lot of good help online...
4... im not sure about... im thinking cause of rotation you might need to skew etc... and im not sure if Turing has that capability (maybe im not a pro at image stuff) |
|
|
|
|
|
DIIST
|
Posted: Fri Dec 15, 2006 6:59 pm Post subject: (No subject) |
|
|
Textures in turing. Wow, im gussing your program dosent really run real time. An idea you could consider for textures(not the best one in the world) i tried is to use fractles. It can help reduce resources when nessery becasue say the polygon is further away,not apearing so large on the screen or polygon is moving fast.You can program it so that you tell turing when its texturing the surface, to not go so many generation into the fractle(ultimatly reducing detail). And say when nothings happening to the object you can tell turing to go deep into the fractile to better produce a more detail render. |
|
|
|
|
|
|
|