Help loading a mesh FastExt

Blitz3D Forums/Blitz3D Programming/Help loading a mesh FastExt

Yue(Posted 2010) [#1]
Hi first of all I have this function:

Function Crear_Menu()
	
	
	
	
	
	
	
	Camara = CreateCamera()
	PositionEntity Camara,0,1,0
	CameraClsColor Camara,173, 216, 230
	
	Fuente_Luz = CreateSphere()
	RotateEntity Fuente_Luz,90,0,0
	ScaleEntity Fuente_Luz,.05,.05,.05
	EntityColor Fuente_Luz,255,128,0
	PositionEntity Fuente_Luz,1,2,3
	ShadowLight Fuente_Luz, 3,120
	
	
	;Plano = CreatePlane()
	;AttachShadowReceiver Plano,0,1
	EntityTexture Plano,Textura0,0,0
	
	Sol = CreateLight()
	RotateEntity Sol,10,0,0
	
	
	
	ScaleEntity Jeep,.5,.5,.5
	PositionEntity Jeep,0,.5,3
	
	CreateShadowCaster Jeep,0,1
	
End Function 


This function is called here:

;========================================================
; Proyecto    : Beta
; Nombre File : Menu_Principal.bb
; Programador : Yue Rexie
; Empresa     : Iris3D -Games Studios- ©
; URL         : http://www.iris3d.tk
; ©           : 2007-2011
;========================================================
; OBJETIVO    : Menu Principal
;========================================================

MoveMouse GraphicsHeight()/2+100,GraphicsHeight()/2
CambiandoR = False 




;-----------------------------
; Includes Especiales -S-
;-----------------------------
Include "Includes3\ShadowsSimple.bb"
.Cambiando_Sombra

CreateShadow Calidad
Global Textura0  = ShadowTexture()



;-----------------------------
; Includes Recursos2
;-----------------------------

Include "Includes\Recursos2.bb"

;-----------------------------
; Escena del Menu.
;-----------------------------

Crear_Menu()

;-----------------------------
; Bucle Principal. Calidad 0
;-----------------------------


Repeat 
	
	TurnEntity Jeep,0,1,0
	If Calidad <> -1 UpdateShadows Camara,1.0
	;If Calidad = -1 FreeShadows()
		
		
		AntiAlias AAlias 
		RenderWorld
	; Funciones
	
		Menu()
		
	
		
		Text_(0,0,FPS()+ "RAM :" + TrisRendered(),0,0,0)
	Flip Turbo
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	If CambiandoR = True 
		Goto Cambio_Resolucion
	End If 
	
	
	If CambiandoS = True  
		Eliminar_Menu()
		FreeShadows()
		ClearWorld True,True,False 
		
		
		
		CambiandoS = False 
		Goto Cambiando_Sombra
	End If 
	
	
Forever



;-----------------------------
; Includes Recursos2
;-----------------------------

Include "Includes\Recursos2.bb"



The problem I have is that the role had created a plane to land and everything worked fine, now what I'm doing is loading a terrain mesh, but that the charge from a file called resources2 and shadows make the change or changing the resolution comes in the Fastext error, but I do not understand is that by failing to: AttachShadowReceiver Plano, 0.1 Everything works fine, then the confusion is the role played by this function in the lib, sorry if this should go Fastext forum support but the man never answers ... I guess she is very busy.

On the other hand, if active AttachShadowReceiver Plano, 0.1 inside the function I get the following error.