heightmap funzt irgednwie nicht
Übersicht
BlitzBasic
Beginners-Corner|
|
nX^Betreff: heightmap funzt irgednwie nicht |
Antworten mit Zitat |
|---|---|---|
|
Ich habe ein Problem und kriege die keine "3d" höhe in die map. bitte helft mir mal:
Code: [AUSKLAPPEN] terrain=LoadTerrain("gfx\height.jpg")
text1=LoadTexture ("gfx\detail1.jpg") text2=LoadTexture ("gfx\color.jpg") text3=LoadTexture ("gfx\shadow.jpg") EntityTexture terrain,text1,0,0 EntityTexture terrain,text2,0,1 EntityTexture terrain,text3,0,2 ScaleEntity terrain,50,500,50 ScaleTexture text1,50,50 ScaleTexture text2,3,3 ScaleTexture text2,3,3 |
||
|
|
Papa1234 |
Antworten mit Zitat |
|---|---|---|
| Ich sehe irgenwie kein Fehler(aber verlass dich nicht auf mich). Zeig uns am besten mal den Rest vom Code | ||
|
Athlon XP 2800+
Radeon X850XT 160gb Festplatte 1gb DDR Ram |
||
|
|
Lord_Vader |
Antworten mit Zitat |
|---|---|---|
|
Ist terrain 0 ? print terrain machen und gucken ob da 0 steht, wenn ja konnte die map nicht geladen werden.
Oder die heightmap ist einfarbig |
||
|
|
nX^ |
Antworten mit Zitat |
|---|---|---|
| ah ich habs hingekommen ich habs einfach gegeschrieben und jezt gehts..... | ||
|
|
nX^ |
Antworten mit Zitat |
|---|---|---|
|
jetzt hab ich ein anderes problem, der schatten, da sind jezt jede menge kleine schatenfelder aufer map
hier mal der gesammte code: Code: [AUSKLAPPEN] Graphics3D 1024,768,32,1
SetBuffer BackBuffer() terrain=LoadTerrain("gfx\height.jpg") text1=LoadTexture ("gfx\detail1.jpg") text2=LoadTexture ("gfx\color.jpg") text3=LoadTexture ("gfx\shadow.jpg") EntityTexture terrain,text1,0,3 EntityTexture terrain,text2,0,1 EntityTexture terrain,text3,0,0 ScaleEntity terrain,50,550,50 ScaleTexture text1,500,500 ScaleTexture text2,500,500 ScaleTexture text2,500,500 cam=CreateCamera() MoveEntity cam,1000,800,1000 CameraFogMode cam,1 CameraRange cam,1,30000 CameraFogRange cam,100,4000 CameraFogColor cam,40,140,255 CameraClsColor cam,40,140,255 light=CreateLight() TurnEntity light,45,45,0 While Not KeyHit(1) RotateEntity cam,EntityPitch(cam)+MouseYSpeed(),EntityYaw(cam)-MouseXSpeed(),0 MoveMouse 512,384 MoveEntity cam,0,0,2 UpdateWorld RenderWorld Flip Wend ClearWorld End |
||
KifferopaGast |
Antworten mit Zitat |
|
|---|---|---|
| Kannst du mal ´nen Screenshot machen? | ||
Übersicht
BlitzBasic
Beginners-Corner
Powered by phpBB © 2001 - 2006, phpBB Group
