用过GLscene控件的大侠请进!!!!!!!!!200大分奉送!!! :)(200分)

J

JOJO_Z

Unregistered / Unconfirmed
GUEST, unregistred user!
我下载了一个GLscene控件版本是v0.9b的。安装后按照下面的过程要完成一个小程序。
但突然报错!! 请问是什么问题!!!
Get a new application with a form
Drop GLScene onto the form
Drop GLSceneViewer, align:=alnone, backgroundcolor:=clbtnface
Doubleclick GLScene, GLSceneEditor appears as separate form
in GLSceneEditor :
add a camera (GLCamera1), position.Z:=10
add a cube(Cube1), showaxes:=true;

in the SceneViewer :
camera:=GLCamera1;
lighting:=false;

in GLSceneEditor :
cube1.texture.image:= just_some_256x256.bmp // or .jpg
cube1.texture.disabled:=false;

to the form :
drop a trackbar,50..500, frequency:=50, position:=50; name:=focal;
trackbar.onchange :
GLCamera1.focallength:=focal.position;


报错为:

[Error] Spline.pas(156): Constant expression violates subrange bounds
[Error] Spline.pas(170): Constant expression violates subrange bounds
[Error] Spline.pas(171): Constant expression violates subrange bounds
[Error] Spline.pas(172): Constant expression violates subrange bounds
[Error] Spline.pas(202): Constant expression violates subrange bounds
[Error] Spline.pas(202): Constant expression violates subrange bounds
[Error] Spline.pas(223): Constant expression violates subrange bounds
[Fatal Error] GLMisc.pas(56): Could not compile used unit 'Spline.pas'


大侠救命呀!!
 
哈哈!又一个用这个控件的!
到底是什么问题啊?
你的路径设置不对吧!或者你根本就没有设置!呵呵!
有空联系:cdyxl@163.com
 
控件设置没有问题
我写了个小程序运行的时候报错!
 
错误信息不是说得很清楚了吗?
常量超出范围了,而且行数也指明了,你找找看,更改一下就行了。
类似下面这样更改:
const
A: Byte = 256; //Byte最大值为255,故256就报错了。
--->
const
A: Integer = 256;

const
A = 256;
 
to xianjun
大侠!!谢谢你.这段程序是控件中自己带的文件.我看了半天也没看明白!!
要不我把这个控件给你发过去,你帮我看看!!
 
请发到xianjun@163.net
 
to xianjun
发过去了请查收!!
 
顶部