Reusing textures

Blitz3D Forums/Blitz3D Programming/Reusing textures

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Well, if you create an external configurer where you can choose whether loading the highpoly or the lowpoly, then you should easily be able to only make it load the right model. Do it like this:

;Read config file
configfile=OpenFile("config.cfg")
polylevel=ReadInt(configfile)
CloseFile(configfile)

;Load models (0=low poly, 1=high poly)
if polylevel=0 then
;Load highpoly models
player=LoadMesh("player_lowpoly.x")
model2=LoadMesh("model2_lowpoly.x")
scene=LoadMesh("scene_lowpoly.x")
;etc..
else
player=LoadMesh("player_highpoly.x")
model2=LoadMesh("model2_highpoly.x")
scene=LoadMesh("scene_highpoly.x")
endif


I think you understand the clue. Do this in the loading section...