CubicVR MAC

4 views
Skip to first unread message

Emre Eldemir

unread,
Jan 14, 2010, 5:05:16 AM1/14/10
to dirgame...@googlegroups.com
I'm trying to make cubic VR like http://www.deansdirectortutorials.com/3D/CubicVR/
but on MAC, there are black lines on intersection of planes ( http://www.eldemir.net/cubicVR.jpg )

solution?

best regards.

-----------------------
Emre ELDEMIR

Dean Utian

unread,
Jan 14, 2010, 5:54:08 AM1/14/10
to dirgame...@googlegroups.com
Hi Emre,

Do have the statement setting the shader textureRepeat to 0 ?

That's one thing I noticed smoothed the joins between textures.

Dean

Emre Eldemir

unread,
Jan 14, 2010, 5:59:34 AM1/14/10
to dirgame...@googlegroups.com
Yes,

boxShaderList[side].textureRepeat = 0
boxShaderList[side].textureRepeatList[1] = true

--------------


--
You received this message because you are subscribed to the Google Groups "Director Game Developer List" group.
To post to this group, send email to dirgame...@googlegroups.com.
To unsubscribe from this group, send email to dirgamedevlis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dirgamedevlist?hl=en.






--
-----------------------
Emre ELDEMIR

peel peel

unread,
Jan 14, 2010, 6:28:46 AM1/14/10
to dirgame...@googlegroups.com
do not use the #box primitive, do not set repeat to false

generate your own cube with the mesh generator

i'm 99% sure it'll correct the artefact
if it doesn't correct the artefact it's not a problem, as you genrate your own model you can control uvcoords and add a small margin (for example use 0.01 & 0.99 instead of 0 & 1)


2010/1/14 Emre Eldemir <emre.e...@gmail.com>

Dean Utian

unread,
Jan 14, 2010, 6:29:10 AM1/14/10
to dirgame...@googlegroups.com
>Yes

>boxShaderList[side].textureRepeat = 0
>boxShaderList[side].textureRepeatList[1] = true

Try add the statement below before the textureRepeat:
boxShaderList[side].textureTransform.scale(1.001,1.001,1.001)

Dean

Emre Eldemir

unread,
Jan 14, 2010, 3:26:28 PM1/14/10
to dirgame...@googlegroups.com
-- Solution:

if the environment.platform contains "mac" then
      boxShaderList[side].textureTransform.position = vector(-1.001,-1.001,-1.001)
      boxShaderList[side].textureTransform.scale(1.002,1.002,1.002)

      boxShaderList[side].textureRepeatList[1] = true
else

      boxShaderList[side].textureRepeat = 0
end if


thank you everyone.

Emre ELDEMiR


--
You received this message because you are subscribed to the Google Groups "Director Game Developer List" group.
To post to this group, send email to dirgame...@googlegroups.com.
To unsubscribe from this group, send email to dirgamedevlis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dirgamedevlist?hl=en.






--
-----------------------
Emre ELDEMIR

Dean Utian

unread,
Jan 15, 2010, 2:37:35 AM1/15/10
to dirgame...@googlegroups.com
Hi Emre,

Glad you found a solution.

I don't know why you'd need


boxShaderList[side].textureRepeatList[1] = true

By making the scale slighly bigger that 1 (100%), you're not going to be repeating (i.e tiling) the texture on the face of the box.

Dean

Emre Eldemir

unread,
Jan 15, 2010, 2:47:57 AM1/15/10
to dirgame...@googlegroups.com
I fixed code:
------------------------

if the environment.platform contains "mac" then
      boxShaderList[side].textureTransform.position = vector(-0.001,-0.001,-0.001)
      boxShaderList[side].textureTransform.scale(1.002,1.002,1.002)
else
      boxShaderList[side].textureRepeat = 0
end if

Dean Utian

unread,
Jan 15, 2010, 8:11:02 AM1/15/10
to dirgame...@googlegroups.com
Just one other thing about 'textureRepeat' and textureRepeatList'.

textureRepeat - controls the first texture layer of a shader
textureRepeatList - controls any layer of a shader

textureRepeat = textureRepeatList[1]

By default, textureRepeat is TRUE

So, if you leave out textureRepeat, then it will be automatically = 1. And checking the help, it will always be = 1 when using #software renderer.

Dean

Reply all
Reply to author
Forward
0 new messages