cancel
Showing results for 
Search instead for 
Did you mean: 

Apply a texture from a HBITMAP to a wall in the sample DirectX11 room

BlueLeopard543
Honored Guest
Hi,

is it possible using the code from the sample OculusTinyRoom(DX11) to apply a texture to a solid from a HBITMAP?

The sample code is

TriangleSet walls;
        walls.AddSolidColorBox(-10.1f, 0.0f, -20.0f, -10.0f, 4.0f, 20.0f, 0xff808080);  // Left Wall
        Add(new Model(&walls, Vector3f(0, 0, 0), new Material(new Texture(false, Sizei(256, 256), Texture::AUTO_WALL))));

Let's say that I want apply a HBITMAP texture on this wall, how can I do it in a simple way?

Thanks
       

2 REPLIES 2

FX2K
Heroic Explorer
You may have more luck on the developer section of the forums...
https://forums.oculus.com/developer
CV1: Ordered 6th Jan 2016 - Est Delivery Some time in May... DK2: Ordered: 8th of Aug 2014 - Delivered: 14 Oct 2014

BlueLeopard543
Honored Guest
How to delete a discussion?