Search found 5 matches

by telengard
Wed Aug 29, 2007 5:18 pm
Forum: Beginners Help
Topic: Texture on only one side/face of box
Replies: 12
Views: 829

Okie,Create the Rectangle as Four Different Planes

p1(left)+p2(top)+p3(right)+p4(bottom)=Rectangle.

Now Apply Texture to any one of the Plane(note,plane is also an Object)

Note : each plane is created as two Triangles

i'll give you idea for creating one plane

Vertex Buffer= { define our points ...
by telengard
Wed Aug 29, 2007 7:09 am
Forum: Beginners Help
Topic: Texture on only one side/face of box
Replies: 12
Views: 829

ansu832001 wrote:Hi,How do you decide which side to ApplyTexture??

Best Regards.
On the top is where I'd like it, but I have no idea how to do it.

~telengard
by telengard
Wed Aug 29, 2007 6:23 am
Forum: Beginners Help
Topic: Texture on only one side/face of box
Replies: 12
Views: 829

Hi,

Are you Creating this Rectangle box as four different Planes(Objects),if so then on MouseDown get the object selected and apply texture as

selectedObj.GetMaterial(0).Texture1=device.VideoDriver.GetTexture(ImagePath);

the above code is in .NET,you can easily convert the same to C++.

Best ...
by telengard
Wed Aug 29, 2007 5:43 am
Forum: Beginners Help
Topic: Texture on only one side/face of box
Replies: 12
Views: 829

Texture on only one side/face of box

Hi there,

I've been searching the forums for some info on this and didn't turn up anything.
I have a simple rectangular box and I'd like to apply a texture just to one side.
I'd like to do it programatically rather than in a modeling program since the program will eventually have an editor where ...
by telengard
Wed Aug 29, 2007 4:22 am
Forum: Open Discussion and Dev Announcements
Topic: Kudos to the devs
Replies: 4
Views: 836

Kudos to the devs

Just want to say that building and running the examples on Linux has been so straight forward and all the samples run fine. I've been trying to pick an engine to use and in some places Irrlicht was not recommended so I checked out Ogre and CS first. No doubt they are good engines, but just getting ...