Search found 44 matches
- November 13th, 2021, 12:18 pm
- Forum: Everything
- Topic: How to remove Chroma Key in sprites in DirectX?
- Replies: 1
- Views: 4790
Re: How to remove Chroma Key in sprites in DirectX?
I solve it with inheritance features
- November 10th, 2021, 9:37 am
- Forum: Everything
- Topic: How to remove Chroma Key in sprites in DirectX?
- Replies: 1
- Views: 4790
How to remove Chroma Key in sprites in DirectX?
I am following Chili's C++ 3D DirectX Programming series (at 24.3 ) and adjust the engine to make it become 2D I'm trying to draw sprites and remove the chroma key, but I don't know how to do it. In Intermediate Tutorial 11 Chili remove chroma key without touching DirectX API How to do it integrated...
- October 27th, 2021, 3:40 pm
- Forum: Everything
- Topic: Question about nearZ, farZ, and camera position relationship in perspective projection
- Replies: 1
- Views: 5177
Question about nearZ, farZ, and camera position relationship in perspective projection
I have 600x600 plane square. My goal is render it on screen in 1:1 ratio. Here is my perspective projection and camera code //Perspective gfx.SetProjection(DirectX::XMMatrixPerspectiveLH(1.0f, 1.0f / Graphics::AspectRatio, 1.0f, 1000.0f)); //camera //every parameter is 0.0f except range const auto p...
- August 11th, 2021, 12:42 am
- Forum: Everything
- Topic: My very first C++ game!!
- Replies: 7
- Views: 5138
Re: My very first C++ game!!
LOL! The music is 我愛北京天安門 I love Beijing Tiananmen
https://www.youtube.com/watch?v=Axxt01yzqlw
https://www.youtube.com/watch?v=Axxt01yzqlw
- June 16th, 2021, 2:42 am
- Forum: Everything
- Topic: Question about typedef template
- Replies: 2
- Views: 3315
Re: Question about typedef template
Double quotes qualify a variable with it's scope. In this case, it's requesting the Pipeline from the global scope ie the Pipeline<> template class which is aliased as Pipeline. The other alias is LightIndicatorPipeline made from Pipeline<SolidColorEffect>. The compiler might get confused and try u...
- June 8th, 2021, 11:00 am
- Forum: Everything
- Topic: Question about typedef template
- Replies: 2
- Views: 3315
Question about typedef template
Hi all, I'm at 3D Programming Fundamentals Tutorial 16. At video 9:08 why we need double-colon before typedef Pipeline template? What does it do? typedef ::Pipeline<GouraudPointEffect> Pipeline; typedef ::Pipeline<SolidColorEffect> LightIndicatorPipeline; This is my first time to read statement like...
- September 28th, 2020, 4:08 am
- Forum: Everything
- Topic: 3D Fundamentals Texture Mapping Geometry Question
- Replies: 5
- Views: 3922
Re: 3D Fundamentals Texture Mapping Geometry Question
I finally figure out how this work by drawing texture on the cube face by face using my own texture! Please ignore my previous post. Here is how I work: Say we have a stickman texture with green head, white body, blue right hand, and red left hand Stickman.png We also have a unfold cube with numbere...
- September 26th, 2020, 4:33 am
- Forum: Everything
- Topic: 3D Fundamentals Texture Mapping Geometry Question
- Replies: 5
- Views: 3922
Re: 3D Fundamentals Texture Mapping Geometry Question
Vertex positions are based on the distance from some origin of the model. For the cube it's the origin is the center and the vertices' positions are some distance from the center. The order in which you put those vertices depends on what API you are using and how it calculates whether a triangle is...
- September 25th, 2020, 11:12 am
- Forum: Everything
- Topic: 3D Fundamentals Texture Mapping Geometry Question
- Replies: 5
- Views: 3922
3D Fundamentals Texture Mapping Geometry Question
I'm at 3D Fundamentals Texture Mapping series. I don't understand "unfolding the geometry of the cube" part video . Chili gives following code: CubeFolded( float size ) { const float side = size / 2.0f; vertices.emplace_back( -side,-side,-side ); // 0 tc.emplace_back( 1.0f,0.0f ); vertices.emplace_b...
- August 13th, 2020, 1:15 am
- Forum: Everything
- Topic: Advanced C++ Tutorial 2 HW star overlapped question
- Replies: 3
- Views: 2898
Re: Advanced C++ Tutorial 2 HW star overlapped question
Luckily you uploaded your solution, because the problem isn't in the function at all. std::uniform_real_distribution<float> distOuter(10.0f, 100.0f); std::uniform_real_distribution<float> distInner(5.0f, 50.0f); I originally thought that this was the problem, since there is overlap between the larg...