Stratos: Punto de Encuentro de Desarrolladores

¡Bienvenido a Stratos!

Acceder

Foros





Error Rendering .x

Iniciado por , 01 de Abril de 2006, 06:35:59 PM

« anterior - próximo »

 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 !

Vicente

 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

 Hello, i converted my .x file to .haddd and i got same error !

Vicente

 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

Haddd

 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

 I complied but there is a render problem WAVE_SIN is not defined it says what can be the problem?






Stratos es un servicio gratuito, cuyos costes se cubren en parte con la publicidad.
Por favor, desactiva el bloqueador de anuncios en esta web para ayudar a que siga adelante.
Muchísimas gracias.