Another issue... Sorry
by John Rockefeller · in Torque Game Engine Advanced · 09/06/2005 (9:10 pm) · 8 replies
Hi there
I know I'm probably bugging the crap out of you guys by now, but I've hunted high and low to find the problem. I've even used WinMerge to compare terrain_water_demo to my own project to see if there are any changes in my script file. I can't find anything that even remotely approaches textures or shaders.
What I did was I had a project in TGE. Then I purchased TSE and converted the 'demo' folder into my project. It's a racing game, so I brought over car.cs and a few others, fixed up the UI and stuff. Nothing major. But then I brought over the entire data folder from terrain_water_demo and some other script files to see if I could use the same water and drive over the cool terrain, but it doesn't work.
The terrain is invisible and the water is all different colors of blue. The shaders on the interior pieces (the metal things in the water) load perfectly, as does the car and controls. So I have this screenshot.
What am I missing to have the terrain invisible and the water shaders to not show up?

Thanks!
I know I'm probably bugging the crap out of you guys by now, but I've hunted high and low to find the problem. I've even used WinMerge to compare terrain_water_demo to my own project to see if there are any changes in my script file. I can't find anything that even remotely approaches textures or shaders.
What I did was I had a project in TGE. Then I purchased TSE and converted the 'demo' folder into my project. It's a racing game, so I brought over car.cs and a few others, fixed up the UI and stuff. Nothing major. But then I brought over the entire data folder from terrain_water_demo and some other script files to see if I could use the same water and drive over the cool terrain, but it doesn't work.
The terrain is invisible and the water is all different colors of blue. The shaders on the interior pieces (the metal things in the water) load perfectly, as does the car and controls. So I have this screenshot.
What am I missing to have the terrain invisible and the water shaders to not show up?

Thanks!
About the author
Web developer from Guelph, Ontario, Canada.
#2
creator/ui/GuiEditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
Engine initialized...
...
clientCmdSetCounter: Unknown command.
clientCmdSetCounter: Unknown command.
...
common/client/missionDownload.cs (67): Unable to find function StartClientReplication
common/client/missionDownload.cs (68): Unable to find function StartFoliageReplication
*** Phase 3: Mission Lighting
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
clientCmdSetCounter: Unknown command.
Mapping string: MissionStart to index: 12
Mapping string: SyncClock to index: 13
Mapping string: SetMaxLaps to index: 14
clientCmdSetMaxLaps: Unknown command.
Mapping string: GameStart to index: 15
*** Initial Control Object
Activating DirectInput...
...
creator/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
creator/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
...
TerrainEditor::attach: no TerrainBlock objects found!
creator/editor/EditorGui.cs (2189): Unable to find object: 'Terrain' attempting to call function 'getHeightfieldScript'
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
Tab data: General^Tab_general^general_min_height^50^general_scale^300^general_water^0.000^general_centerx^0^general_centery^0 tab: Tab_general
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
creator/editor/EditorGui.cs (1448): Unable to find object: 'Terrain' attempting to call function 'getTextureScript'
creator/editor/EditorGui.cs (239): Unable to find object: 'EditorTree' attempting to call function 'init'
Loading compiled script creator/editor/editorRender.cs.
MissionAreaEditor::onWake: no TerrainBlock object.
creator/editor/EditorGui.cs (680): Unable to find object: 'EditorTree' attempting to call function 'open'
...
xhro/client/scripts/serverConnection.cs (168): Unable to find function clearTextureHolds
I don't know.. Am I missing something?
09/06/2005 (10:52 pm)
Loading compiled script creator/ui/GuiEditorGui.gui.creator/ui/GuiEditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
Engine initialized...
...
clientCmdSetCounter: Unknown command.
clientCmdSetCounter: Unknown command.
...
common/client/missionDownload.cs (67): Unable to find function StartClientReplication
common/client/missionDownload.cs (68): Unable to find function StartFoliageReplication
*** Phase 3: Mission Lighting
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
clientCmdSetCounter: Unknown command.
Mapping string: MissionStart to index: 12
Mapping string: SyncClock to index: 13
Mapping string: SetMaxLaps to index: 14
clientCmdSetMaxLaps: Unknown command.
Mapping string: GameStart to index: 15
*** Initial Control Object
Activating DirectInput...
...
creator/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
creator/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
...
TerrainEditor::attach: no TerrainBlock objects found!
creator/editor/EditorGui.cs (2189): Unable to find object: 'Terrain' attempting to call function 'getHeightfieldScript'
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
Tab data: General^Tab_general^general_min_height^50^general_scale^300^general_water^0.000^general_centerx^0^general_centery^0 tab: Tab_general
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
Heightfield::eval:0 General
Terraformer::terrainData - TerrainBlock 'terrain' not found.
creator/editor/EditorGui.cs (2579): Unable to find object: 'Terrain' attempting to call function 'setHeightfieldScript'
creator/editor/EditorGui.cs (1448): Unable to find object: 'Terrain' attempting to call function 'getTextureScript'
creator/editor/EditorGui.cs (239): Unable to find object: 'EditorTree' attempting to call function 'init'
Loading compiled script creator/editor/editorRender.cs.
MissionAreaEditor::onWake: no TerrainBlock object.
creator/editor/EditorGui.cs (680): Unable to find object: 'EditorTree' attempting to call function 'open'
...
xhro/client/scripts/serverConnection.cs (168): Unable to find function clearTextureHolds
I don't know.. Am I missing something?
#3
The Atlas terrain, if present in the scene, should be visible unless it can't find shaders, or if one of a small number of other problems is occuring.
Is guiOtherTreeViewCtrl.cc present in your project file? What about the Atlas directory?
09/07/2005 (1:20 am)
This, incidentally, is why the editor gui is broken:creator/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl. creator/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiOtherTreeViewCtrl.
The Atlas terrain, if present in the scene, should be visible unless it can't find shaders, or if one of a small number of other problems is occuring.
Is guiOtherTreeViewCtrl.cc present in your project file? What about the Atlas directory?
#4
I can drive up and down the terrain, but it's completely transparent. It looks like the car is driving over fake bumps and hills.
09/07/2005 (4:50 pm)
Yes, both the Atlas folder and the guiOtherTreeViewCtrl.cpp files are in my project file.I can drive up and down the terrain, but it's completely transparent. It looks like the car is driving over fake bumps and hills.
#5
09/07/2005 (6:10 pm)
Do you see a strange white object/mesh during the mission?
#6
09/07/2005 (6:43 pm)
YES! What is that?!
#7
I just took it out and got the same problem.
09/07/2005 (6:54 pm)
In client\scripts\shaders.cs make sure you have: {
DXVertexShaderFile = "shaders/atlasSurfaceV.hlsl";
DXPixelShaderFile = "shaders/atlasSurfaceP.hlsl";
pixVersion = 1.1;
};I just took it out and got the same problem.
#8
09/07/2005 (7:55 pm)
Got it. Everything was in place, but for some reason it wasn't recompiling my shaders.cs file, so I deleted the .dso file and BAM! All of the shaders work. I feel like a dummy! When all else fails, delete your .dso files before posting (future reference).
Associate Kyle Carter