GLBasic forum

Main forum => GLBasic - en => Topic started by: niksha on 2008-Oct-19

Title: Question about 3D in GLB
Post by: niksha on 2008-Oct-19
I left GLB for '3D GameStudio' a long time ago (using it for a game atm actually) mostly because in GLB, textures on 3d models didn't show up correctly when exported from 3ds max. So anyone here using GLB with 3d models encountering any problems with the new updates (I tried it a long time ago)?

Basically, my problem was using a model with the multi-texture material from Max (model with different ID's using different textures). Using 'Render to Texture' (RTT) to generate a single diffuse map for the model didn't work properly for models and textures showed up all scrambeled (like someone inverted UVW map on the models or sometimes the alpha didn't work properly). Though one thing I didn't try was using RTT on models and then using the generated texture as a single standard material (ie. single diffuse map) on the model. But that's the problem here, it is the long way around the problem so it would be nice if someone can forward me to a game using models with multi-texture materials or something similar.

Either way, I am going to download the new demo and see for myself, but do post if you have something to share because I left GLB heartbroken (still love it :P) just because I couldn't get the models to work properly in my game :(.

Thanks.
Title: Re: Question about 3D in GLB
Post by: Hemlos on 2008-Oct-19
i havent tried it in a few years myself, but if i remember correctly you need to make a mesh too.
Theres a tutorial for making models..you might want to set a uv map too.
Also i think if theres an offset issue, you might be able to try X_SETTEXTUREOFFSET for a workaround.
Title: Re: Question about 3D in GLB
Post by: niksha on 2008-Oct-19
Well, my models were meshes and had UV map as well. I don't remember trying the X_SET method you mentioned so I will have to give t a try.

On the side note, I remember sending the model with problem to Gernot and even he couldn't solve the problem. He mentioned updating the converter (model converter as far as I can remember) for these problems in models but I never got a reply after that (so I left since it seems 3d wasn't the priority).

Well, anyways, I will give it a try later on. But considering the lack of replies on this problem since last time, it looks like GLB isn't used for 3d stuff a lot (or at all). Mostly hand held/2d games so I guess it still is the poor choice for such projects (I am not trying to create a MMO :P). Oh well, I'll stick to my current tools then.
Title: Re: Question about 3D in GLB
Post by: Hemlos on 2008-Oct-19
I think the converter works fine,

check this sample in \GLBasic\Projects\Samples\3D\Animation\Animation.gbap