PositionTexture, (3d programming sucks)
Blitz3D Forums/Blitz3D Programming/PositionTexture, (3d programming sucks)
| ||
PositionTexture doesnt do anything on my computer. I press the arrow keys, the numbers change, but the texture doesnt. My computer is less than a year old and I have the latest blitz update. I have a radeon IGP 320 M, and I cant seem to get any updates. ; PositionTexture Example ; ----------------------- Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() light=CreateLight() RotateEntity light,90,0,0 cube=CreateCube() PositionEntity cube,0,0,5 ; Load texture tex=LoadTexture( "media/b3dlogo.jpg" ) ; Texture cube EntityTexture cube,tex ; Set initial uv position values u_position#=1 v_position#=1 While Not KeyDown( 1 ) ; Change uv position values depending on key pressed If KeyDown( 208 )=True Then u_position#=u_position#-0.01 If KeyDown( 200 )=True Then u_position#=u_position#+0.01 If KeyDown( 203 )=True Then v_position#=v_position#-0.01 If KeyDown( 205 )=True Then v_position#=v_position#+0.01 ; Position texture PositionTexture tex,u_position#,v_position# TurnEntity cube,0.1,0.1,0.1 RenderWorld Text 0,0,"Use cursor keys to change uv position values" Text 0,20,"u_position#="+u_position# Text 0,40,"v_position#="+v_position# Flip Wend End |
| ||
I can only imagine that's either a limitation of the mobile chipset or a 'driver thing' -- it works fine here on Radeon 9800. (I did something similar on my old ATI Mobility M2-based laptop too, which is ancient and crap.) |
| ||
Have you tried upgrading your graphics driver? |
| ||
ya, I download the install file from ATI.com and it says it cant find any graphics card hardware to update. |
| ||
ok, rotatetexture and scaletexture work. Is this commonly known that positiontexture doesnt work on some brands? Is there a list of commands that you shouldnt use because you want to distribute a 3d game? I know my computer has a 50% chance of resetting on the EndGraphics command when a terrain was used. But warcraft 3 and AOM and warlords and marrowind work fine. |
| ||
Repositioning the texture should just shift the UVW coordinates, I don't see why it shouldn't work... |
| ||
What about limiting the U,V values to between -1 and 1? |
| ||
you mean between 0 and 1 which is normal. <0 is "nonstandard" and is normally just wrapped. regular hardware shouldn't have a problem with it ... for the drivers: you will have to go to your notebook / pc constructors page. ATI has no drivers for mobile or IGP chipsets. they have to be done by the mainboard / notebook manufacturers. |
| ||
Your code works perfectly here. I've used the positiontexture command before with no problems on a number of cards. Sorry. |
| ||
awesome, it works now. I went to hp.com and found a new driver. I was very frustrated because if every major 3D game works on them, but a whole class of laptops are made with 3 things broken in blitz (that I know of), then I would need a lot of beta testers to find out what I can do and what I cant... While everything in my 2d blitz games worked on every computer I tried. |
| ||
You can also probably use Omega drivers (can't remember the exact url, sorry) which are modified versions of the latest Catalyst drivers. One of the modifications is that they also work on most of ATI's mobility chipsets. |
| ||
The Omega Drivers are at http://www.omegadrivers.net/ |