| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| drawing things without a buffer and; adjusting their size based on distance | |
|---|---|
| Tweet Topic Started: Sep 24 2008, 01:07 AM (169 Views) | |
| Eansis | Sep 24 2008, 01:07 AM Post #1 |
|
ghost
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Like for example, I have a billboard behind something I want it to appear seeable. (like the famous GM function, d3d_hidden.) Also what is the equation for having it remain the same screen size regardless of its distance from the camera? |
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY
| |
![]() |
|
| skarik | Sep 24 2008, 01:21 AM Post #2 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
DrawTex() GetScreenCoord() BlaThisDip() Or pixel_shader = "additive.psh" CreatePSSShader() Edited by skarik, Sep 24 2008, 01:21 AM.
|
| Blog|EHS | |
![]() |
|
| Eansis | Sep 24 2008, 03:54 AM Post #3 |
|
ghost
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
well i can't use draw tex because theres no additive blending and also if it is a model it wont work i dont want to use a shader because it is not compatible with certain machines |
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY
| |
![]() |
|
| skarik | Sep 24 2008, 04:08 AM Post #4 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Use a universal vertex shader where you decrease the z coordinate relative to the screen. That's simple, but you lose most lighting. You can only have 3 lights.
Edited by skarik, Sep 24 2008, 04:08 AM.
|
| Blog|EHS | |
![]() |
|
| Eansis | Sep 24 2008, 08:06 AM Post #5 |
|
ghost
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hmmm, how would that work? Is the shader a 2d orthographic projection? |
VOTE FOR BUDDY ROEMER HE'S A STRAIGHTFORWARD, DOWN TO EARTH AMERICAN GUY WHO ISN'T PART OF THE BIGBROTHER CONSPIRACY
| |
![]() |
|
| skarik | Sep 25 2008, 03:36 AM Post #6 |
|
kitten eating scum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
No, it basically does what an object with no shader does except it has one extra calculation called mul oPos, r0, c5 |
| Blog|EHS | |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



2:48 AM Jul 11