Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


imoogiBG

Member Since 16 Jan 2011
Offline Last Active Today, 03:57 AM

Posts I've Made

In Topic: Most efficient way of designing a vector class in 3D

Today, 01:28 AM

Solution 4

union 
{
    float v[3];
    struct { float x, float y, float z; };
}

In Topic: Triangle-AABB intersection test

30 August 2015 - 05:04 PM

You colud use the "separate axis algorithm". Depending on the case I think that it is possible to get away only with "is every vertex from the triangle in the box" test... not sure


In Topic: Transfer Function Lookup Table Failing

28 August 2015 - 02:38 AM

"v=0.5 is the centre of the image. v=0/1 are the top/bottom edges of the image." (facepalm) Sure for some reason I was thinking that he has a 1D texture.


In Topic: Transfer Function Lookup Table Failing

27 August 2015 - 03:52 PM

"float2(smp.?, 0.5f)" ? 0.f is the center of the pixel. Also what are you using for Sampler0?

 

Probably because your "v" coord is 0.5, and you have a clamp to border with black you get a darker result?


In Topic: Adding some type of metadata in HLSL?

27 August 2015 - 12:39 PM

you could use set a specific "prefix" or "suffix" for the interesting variables.

 

Something like this:

float3 v_pos;
float3 v_normal;
int      i_idx;

PARTNERS