Foros - Stratos

Proyectos => Jad Engine => Mensaje iniciado por: en 01 de Abril de 2006, 06:35:59 PM

Título: Error Rendering .x
Publicado por: en 01 de Abril de 2006, 06:35:59 PM
 Hello, when i try to load & render a .x file i get following error:


1

Unhandled Exception: System.IndexOutOfRangeException: Index was outside the boun
ds of the array.
  at HadddEngine.Scene.HScene.CreateMeshObjectsToRender()
  at HadddEngine.Scene.HScene.Render()
  at Tutorial.HTutorial.Render() in H:\Haddd2_0\Exes\Projects\Tut-01. A box and
a light\Tutorial01.cs:line 285
  at Tutorial.HMain.OnApplicationIdle(Object sender, EventArgs e) in H:\Haddd2_
0\Exes\Projects\Tut-01. A box and a light\Main.cs:line 93
  at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.Unsafe
NativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
  at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.Uns
afeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int3
2 reason, Int32 pvLoopData)
  at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 r
eason, ApplicationContext context)
  at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason
, ApplicationContext context)
  at System.Windows.Forms.Application.Run(Form mainForm)
  at Tutorial.HMain.Start() in H:\Haddd2_0\Exes\Projects\Tut-01. A box and a li
ght\Main.cs:line 145
  at Tutorial.HApplication.Main() in H:\Haddd2_0\Exes\Projects\Tut-01. A box an
d a light\Main.cs:line 42


I use following code to import the .x file:


Haddd.Import.Load("waterworld.x");


The debugger stops at:


Haddd.Scene.Render();


Thanks for help !
Título: Error Rendering .x
Publicado por: Vicente en 01 de Abril de 2006, 07:11:35 PM
 Hi!

you can´t load a .x file directly. You have to load .HADDD files. Actually there´s a converter for 3DS Max that allows you to export into a .HADDD file. Greetings!

Vicente
Título: Error Rendering .x
Publicado por: en 01 de Abril de 2006, 11:34:20 PM
 Hello, i converted my .x file to .haddd and i got same error !
Título: Error Rendering .x
Publicado por: Vicente en 02 de Abril de 2006, 02:08:39 AM
 Then you´ll have to wait till Berserker or Haddd see this and answer, I have nearly no idea of the graphic part of the engine... (surely they´ll answer tomorrow).

Greetings!

Vicente
Título: Error Rendering .x
Publicado por: Haddd en 02 de Abril de 2006, 11:37:04 AM
 Currently, i think the engine is limited to 12 subsets for every mesh. Maybe that should be the reason...If it's not , please send me the .x file, i will take a look
Título: Error Rendering .x
Publicado por: en 27 de Abril de 2006, 06:39:19 PM
 I complied but there is a render problem WAVE_SIN is not defined it says what can be the problem?