How to set up a DefaultSceneView in TX 3D Pro 3.0
by Rapid Fire · in Torque X 3D · 05/13/2009 (6:50 am) · 8 replies
I'm having problems running a new project in, when i try to run it I get the following error ""GUISceneView.OnRender - No ISceneCamera object found: cannot view a scene without a camera!". Am i doing something completely wrong, without doing anything at all. Sorry for my noobness, i'm new to TorqueX. I usually write my own engines.
Edit - Never mind i got it :)
Thanks,
Best Regards,
Tilan.
Edit - Never mind i got it :)
Thanks,
Best Regards,
Tilan.
#2
Best Regards,
Tilan.
05/14/2009 (11:20 am)
I'm not at home right now, but from my memory i changed the Camera component type from FreeCameraComponent to T3DCameraComponent in the leveldata.txscene file.Best Regards,
Tilan.
#3
Found a solution in a 2D thread. It seems to have worked.
4. I right clicked each project and changed the assembly name under the application tab to GarageGames.TorqueX.Framework3D for the Torque3D project and GarageGames.TorqueX.Framework for the TorqueCore project.
05/19/2009 (10:25 am)
Didn't work for me. I am still sitting here without a camera.. LOL! Are we the only 3 guys with this problem? Found a solution in a 2D thread. It seems to have worked.
4. I right clicked each project and changed the assembly name under the application tab to GarageGames.TorqueX.Framework3D for the Torque3D project and GarageGames.TorqueX.Framework for the TorqueCore project.
#4
John K.
www.envygames.com
05/21/2009 (12:12 am)
This does sound strange, I haven't run into this problem. Is this with a Debug build? Does it also happen with a Release build?John K.
www.envygames.com
#5
Best Regards,
Tilan.
05/21/2009 (6:25 am)
i got it to work after adding a player component, following the basic 3D tutorial. but right out of the box it will throw an error when trying to run it. I also ran chapter 12 code from John's book, and it was fine, the only difference was the chapter 12 code added a player, and used a T3DCameraComponent.Best Regards,
Tilan.
#6
If I change them like I posted above, NP works great. This is a totally fresh install, new VS2008, XNA 3.0. and newly downloaded TX3D & TX2D.
Good luck man you'll figure it out!
05/21/2009 (2:50 pm)
I just downloaded the build on the server again yesterday, I am running in vista 64. Previously I thought it was because of windows 7. I found an XNA bug with windows 7 and had to revert to vista. I opened a brand new fresh file and get the no camera thing. the assembly name for T3D is Torque3D. The Assembly name for Torque Core is TorqueCore.If I change them like I posted above, NP works great. This is a totally fresh install, new VS2008, XNA 3.0. and newly downloaded TX3D & TX2D.
Good luck man you'll figure it out!
#7
05/21/2009 (9:31 pm)
I tried that Henry suggested and it loaded just fine. Without I get lots of "Ignoring List subelement 'CameraComponent': no default type mapping, no type attribute, and list type 'GarageGames.Torque.Core.TorqueComponent' is not instantiable" for each item in the XML when it is loading levelData.txscene. I noticed that the FPS sample included had the Assembly names changed too so that explains why they work for me. I guess it is just wrong in the template.
#8
Best Regards,
Tilan.
05/22/2009 (6:08 am)
Awesome. Thanks Henry for this great solution. I don't have to use John's books project files any more for new projects.Best Regards,
Tilan.
Torque Owner Brent Lamb
Fathom Games
---- DEBUG ASSERTION FAILED ----
---- Assert Short Message ----
GUISceneView.OnRender - No ISceneCamera object found: cannot view a scene without a camera!
---- Assert Long Message ----
at Assert.Fatal(Boolean condition, String message) C:Documents and SettingsMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSTorqueCoreCoreAssert.cs(31)
at GUISceneview.OnRender(Vector2 offset, RectangleF updateRect) C:Documents and SettingsOwner.DEVMOMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSTorqueCoreGUIGUISceneview.cs(90)
at GUICanvas.OnRender(Vector2 offset, RectangleF updateRect) C:Documents and SettingsOwner.DEVMOMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSTorqueCoreGUIGUICanvas.cs(227)
at GUICanvas.RenderFrame() C:Documents and SettingsMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSTorqueCoreGUIGUICanvas.cs(148)
at TorqueEngineComponent.Draw(GameTime gameTime) C:Documents and SettingsOwner.DEVMOMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSTorqueCoreXNATorqueEngineComponent.cs(497)
at Game.Draw(GameTime gameTime)
at TorqueGame.Draw(GameTime gameTime) C:Documents and SettingsMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSTorqueCoreGameUtilTorqueGame.cs(300)
at Game.DrawFrame()
at Game.Tick()
at Game.HostIdle(Object sender, EventArgs e)
at GameHost.OnIdle()
at WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Application.Run(Form mainForm)
at WindowsGameHost.Run()
at Game.Run()
at Game.Main() C:Documents and SettingsMy DocumentsVisual Studio 2008ProjectsMyXnaFPSMyXnaFPSGameGame.cs(44)