I have a very strange problem, while in 2D it works fine, in 3D if I use 16 bits vertices nothing will be drawn :(
Has anyone had this issue? Thanks.
GU_TRANSFORM_3D + GU_VERTEX_16BIT = nothing drawn?
GU_TRANSFORM_3D + GU_VERTEX_16BIT = nothing drawn?
Sorry for my bad english
Oldschool library for PSP - PC version released
Oldschool library for PSP - PC version released
Err... okay thanks :) But I'm a completely beginner in 3D, could you explain me how can I do that please?
Sorry for my bad english
Oldschool library for PSP - PC version released
Oldschool library for PSP - PC version released
You first find the scale value for each axis (measure the distance between the lowest and highest coordinate), and then figure out a good center so that you can use as much of the resolution between -1 and 1 (-32768 - 32767). You then store these values so that you can construct a matrix that translates & scales your model into the proper location & size. Translate & divide the model down so that it fits within this area.
When rendering you push the matrix on the model-stack the first thing you do and the rest should work.
If you can't follow this, I recommend you research matrices or stick to 32-bit coordinates. :)
When rendering you push the matrix on the model-stack the first thing you do and the rest should work.
If you can't follow this, I recommend you research matrices or stick to 32-bit coordinates. :)
GE Dominator
I have written a sample that show the behavior of integer drawing in 3d mode.
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=0
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=0
http://emergencyexit.untergrund.net - Quake 2 PSP