This project is read-only.

Engine Nine1.2's DrawableSurface

Feb 28, 2013 at 1:05 PM
drawableSurface = new DrawableSurface(graphicsDevice, content.Load<Heightmap>(heightmap), 32);

I used this in my game,and I found it's Z axis.Buy all my subject is Y axis.How to deal with it?
Feb 28, 2013 at 1:11 PM
In Version 1.2, Z-axis is the up axis.
Feb 28, 2013 at 1:12 PM
Edited Feb 28, 2013 at 1:13 PM
In Version 1.2, Z-axis is the up axis. // Codeplex is buggy..... double post
Feb 28, 2013 at 1:37 PM
Thanks a lot.Is there a way to rotate the terrain?
Feb 28, 2013 at 1:50 PM
If your doing it in Xaml (Read 2nd post)
http://nine.codeplex.com/discussions/428200

In code I would say it is (You might have to change the Axis):
drawableSurface.Transform *= Matrix.CreateRotationX(MathHelper.ToRadian(90));
Feb 28, 2013 at 2:30 PM
Thanks a lot.Is there a way to rotate the terrain?
Feb 28, 2013 at 2:45 PM
I'm doing it in code and I did what you said, nothing happened but the camera rised.
Feb 28, 2013 at 2:48 PM
I'm doing it in code and I did what you said, nothing happened but the camera rised.
Feb 28, 2013 at 2:56 PM
I'm doing it in code and I did what you said, nothing happened but the camera rised.
Feb 28, 2013 at 2:56 PM
Edited Feb 28, 2013 at 2:56 PM
drawableSurface.Transform = Matrix.CreateRotationX(MathHelper.ToRadian(90));
Maybe? I haven't used version 1.2 in ages...

ps. Stop refreshing, it just makes posts xD
Feb 28, 2013 at 2:59 PM
Ah, I have no idea why my skinned model is Y AXIS...My partner loaded it.It was also loaded with version 1.2.I'm going to ask him tonight.Thanks again,ChFlashER.
Feb 28, 2013 at 3:03 PM
It can be changed in the Content Pipeline. There are properties like X/Y/Z Axis Rotation.
Mar 3, 2013 at 2:21 PM
Now I'm trying to rend the terrain without DrawableSurface.I just used Heightmap class to load the heightmap.I hope that will be useful,thanks for your answer!