游戏开发论坛

 找回密码
 立即注册
搜索
查看: 5013|回复: 6

Asphyre 3D问题?

[复制链接]

32

主题

232

帖子

234

积分

中级会员

Rank: 3Rank: 3

积分
234
发表于 2006-7-14 15:42:00 | 显示全部楼层 |阅读模式
现在用Asphyre做的一般都是2D
不知道有没有一些3D方面的资料
比如加载MD3的
还有一个问题:
有个3DS模型,是一个矩形的场景,就是一个矩形的内部有楼梯之类的东东,
我用Asphyre自带的工具将其转化为MESH文件,然后用Model加载进来。但不管怎么调整CAMERA,即使将CAMERA的位置放在矩形内部也是不行的,不知道哪位高手能够解决一下这个问题。谢谢!!

27

主题

295

帖子

305

积分

中级会员

Rank: 3Rank: 3

积分
305
发表于 2006-7-15 17:30:00 | 显示全部楼层

Re:Asphyre 3D问题?

?楹尾坏焦倬W去????
在??我看是?]人能回答你的???...

32

主题

232

帖子

234

积分

中级会员

Rank: 3Rank: 3

积分
234
 楼主| 发表于 2006-7-15 17:49:00 | 显示全部楼层

Re:Asphyre 3D问题?

DraculLin老大呀,
恩,好的,对了能不能说说Landscape呀?
刚刚看了自带的例子中的Skies例子
procedure TMainForm.DeviceInitialize(Sender: TObject; var Success: Boolean);
begin
// add default materials
Materials.Add();
Materials.Add();
Materials[1].Diffuse:= $FF294851;
Materials[1].Specular:= $FF404040;
Materials.Add();
Materials[2].Specular:= 0;

// primary terrain texture
Success:= Textures.AddTexture('terrain0.jpeg', Archive, aqHigh, alNone);

// secondary terrain texture
if (Success) then
  Success:= Textures.AddTexture('terrain1.jpeg', Archive, aqHigh, alNone);

// sky texture
if (Success) then
  Success:= Textures.AddTexture('sky.jpeg', Archive, aqHigh, alNone);

// load landscape height map
if (Success) then
  Success:= CreateLandPlane();

// load the sky-dome
if (Success) then
  Success:= LoadSkydome();
end;

//---------------------------------------------------------------------------
function TMainForm.CreateLandPlane(): Boolean;
var
Model: TAsphyreModel;
begin
// step 1. configure landscape textures
Landscape.Textures[0]:= TileTex(Point2(1.0, 1.0), Point2(0.0, 0.0));//到底是干什么的?用处是什么??
Landscape.InsertTexture();//插入的是什么纹理??
Landscape.Textures[1]:= TileTex(Point2(32.0,32.0), Point2(0.0, 0.0));

// step 2. update the landscape and create compatible mesh
Landscape.UpdateHeights();//干什么用的??
Landscape.UpdateMesh();//干什么用的??

// step 3. load a new model from the landscape mesh
Model:= Models.Add();

// -> specify what textures we're going to use
Model.Texturing.Include(0);
Model.Texturing.Include(1);

// -> actually *load* the mesh at this point
Result:= Model.LoadFromMesh(Landscape.Mesh);

// -> landscape is not illuminated
Model.Lighting:= False;
end;

//---------------------------------------------------------------------------
function TMainForm.LoadSkydome(): Boolean;
var
Sky: TAsphyreModel;
begin
Sky:= Models.Add();
Sky.Texturing.Include(2);
Result:= Sky.LoadFromASDb('skymap.mesh', Archive);

// skymap is not illuminated either
Sky.Lighting:= False;
end;

不是太理解

32

主题

232

帖子

234

积分

中级会员

Rank: 3Rank: 3

积分
234
 楼主| 发表于 2006-7-15 18:03:00 | 显示全部楼层

Re:Asphyre 3D问题?

为什么我在官方网站http://www.afterwarp.net上
注册了,没有权限发帖子呀??

32

主题

232

帖子

234

积分

中级会员

Rank: 3Rank: 3

积分
234
 楼主| 发表于 2006-7-15 18:40:00 | 显示全部楼层

Re:Asphyre 3D问题?

可以发帖子了
要用邮箱中的东东激活一下

0

主题

1

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2007-2-1 10:46:00 | 显示全部楼层

Re:Asphyre 3D问题?

billwillman
我也正在学Asphyre ,上面的问题我也不太理解,能不能相互交流一下呢?我的QQ 312426610.

32

主题

232

帖子

234

积分

中级会员

Rank: 3Rank: 3

积分
234
 楼主| 发表于 2007-2-1 15:31:00 | 显示全部楼层

Re: Asphyre 3D问题?

当然可以了,不过现在Asphyre已经支持3DS文件和MD2文件(我的是老版本3.1),新版本还支持.x文件.
QQ:370620516
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-26 09:21

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表