Results 1 to 3 of 3

Thread: Double sided texture not work

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2018
    Posts
    10

    Double sided texture not work

    Hi everyone. Sorry for my bad English. I create dae file to export to the web app. My surface has texture only on back (one side of surface). I want it has face and back texture. In collada spec 1.5 (page 26) i see that we should apply semantic attribute with double sided:
    <input semantic="POSITION" source="#grid-Position"/>
    <newparam sid="blah">
    <semantic>DOUBLE_SIDED</semantic>
    <float>1.0</float>
    </newparam>

    But when i do this nothing changed. I paste this code:

    <effect name="Material0-fx" id="Material0-fx">
    <profile_COMMON>
    <newparam sid="Image-Material0-surface">
    <surface type="2D">
    <init_from>Image-Material0</init_from>
    <format>A8R8G8B8</format>
    </surface>
    </newparam>
    <newparam>
    <semantic>DOUBLE_SIDED</semantic>
    </newparam>

    <technique id="Material0-fx-COMMON" sid="COMMON">
    <phong>
    <ambient>
    <color>1 1 1 1</color>
    </ambient>
    <diffuse>
    <texture texture="Image-Material0-sampler" texcoord="CHANNEL1" />
    </diffuse>
    <specular>
    <color>0.00784313725490196 0.00784313725490196 0.00784313725490196 1</color>
    </specular>
    <shininess>
    <float>0.3125</float>
    </shininess>
    <transparency>
    <float>0</float>
    </transparency>
    </phong>
    </technique>
    </profile_COMMON>
    </effect>


    What is wrong in my code that texture applied only for back of surface?

  2. #2
    Newbie Newbie
    Join Date
    Dec 2018
    Posts
    1
    I have the same problem

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2016
    Posts
    121
    I think there is a very recent topic here about this exact thing... maybe PhantomPlum's.

    My advice is to use <bool> for this semantic. I think the manual's example is a bad copy/paste job. That said, if you set it up correctly, like every other "param" then, it is just that your software is not implementing the feature.

    EDITED: Notice your code doesn't have the value. It looks like that is a required field.
    Last edited by Mick P.; 12-20-2018 at 12:33 PM.
    This account can Moderator spam in the COLLADA forum.
    ColladaDOM 3 (COLLADA-DOM 2016)
    https://sourceforge.net/p/collada-do...ussion/531263/

Similar Threads

  1. Double-sided materials
    By pboyer in forum COLLADA
    Replies: 1
    Last Post: 07-19-2011, 04:57 PM
  2. How to create a double sided texture.
    By geosh in forum COLLADA
    Replies: 7
    Last Post: 07-19-2011, 02:57 PM
  3. double sided geometry
    By kevt in forum COLLADA
    Replies: 2
    Last Post: 10-31-2005, 10:05 AM
  4. double sided lighting
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-19-2003, 08:59 PM
  5. how to: double sided poly material
    By bsenftner in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 05-05-2001, 09:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean