instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 17, 2018, 08:18:45 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Point Light within a building  (Read 1656 times)
mikolaskova
Newbie
*
Posts: 3


View Profile
« on: March 09, 2015, 03:19:39 pm »

Hello,

I want to model a building and inside lights. But there are problems with the shadow... I attached two screenshots a) how it should look like (rendered scene in blender) and b) how it looks (x3d, x3dom in browser).

The light is casting to all sides, not only through the open side of the cube...

Below I'm posting the code of the Lamp and the Cube...

Thanks for any help, how to achieve the light casting out only one side...

Regards

Adriana

The Lamp Code:
<Transform DEF="Lamp_TRANSFORM"
                 translation="0.071964 0.146493 -0.026262"
                 scale="1.000000 1.000000 1.000000"
                 rotation="-0.498084 -0.762016 -0.413815 1.513875"
                 >
         <PointLight DEF="LA_Lamp"
                     ambientIntensity="0.0000"
                     color="1.0000 1.0000 1.0000"
                     intensity="0.5714"
                     radius="30.0000"
                     location="0.0000 0.0000 0.0000"
                     shadowIntensity="1"
                    
                     />
      </Transform>
The Cube Code:

<Transform DEF="Cube_TRANSFORM"
                 translation="0.000000 0.000000 0.000000"
                 scale="1.000000 1.000000 1.000000"
                 rotation="0.000000 0.707107 0.707107 3.141593"
                 >
         <Transform DEF="Cube_ifs_TRANSFORM"
                    translation="0.000000 0.000000 0.000000"
                    scale="1.000000 1.000000 1.000000"
                    rotation="1.000000 0.000000 0.000000 0.000000"
                    >
            <Group DEF="group_ME_Cube">
               <Shape>
                  <Appearance>
                     <Material DEF="MA_Material"
                               diffuseColor="0.800 0.800 0.800"
                               specularColor="0.401 0.401 0.401"
                               emissiveColor="0.000 0.000 0.000"
                               ambientIntensity="0.333"
                               shininess="0.098"
                               transparency="0.0"
                               />
                  </Appearance>
                  <IndexedFaceSet solid="true"
                                  coordIndex="73 42 2 28 -1 74 35 6 48 -1 75 29 5 33 -1 76 31 6 35 -1 77 32 7 36 -1 78 44 3 26 -1 79 30 13 49 -1 80 51 20 50 -1 81 52 11 40 -1 82 47 18 53 -1 83 55 21 54 -1 84 56 19 36 -1 85 41 12 57 -1 87 60 16 45 -1 88 43 14 61 -1 89 63 22 62 -1 90 64 18 47 -1 91 44 15 65 -1 92 67 23 66 -1 93 68 19 48 -1 94 32 15 69 -1 95 71 24 70 -1 96 72 9 38 -1 49 13 42 73 -1 20 49 73 52 -1 52 73 28 11 -1 53 18 35 74 -1 21 53 74 56 -1 56 74 48 19 -1 57 12 29 75 -1 60 75 33 16 -1 61 14 31 76 -1 22 61 76 64 -1 64 76 35 18 -1 65 15 32 77 -1 23 65 77 68 -1 68 77 36 19 -1 69 15 44 78 -1 24 69 78 72 -1 72 78 26 9 -1 26 3 30 79 -1 9 26 79 51 -1 51 79 49 20 -1 38 9 51 80 -1 0 38 80 37 -1 37 80 50 8 -1 50 20 52 81 -1 8 50 81 25 -1 25 81 40 1 -1 33 5 47 82 -1 16 33 82 55 -1 55 82 53 21 -1 45 16 55 83 -1 4 45 83 46 -1 46 83 54 17 -1 54 21 56 84 -1 17 54 84 34 -1 34 84 36 7 -1 25 1 41 85 -1 8 25 85 59 -1 37 8 59 86 -1 0 37 86 39 -1 39 86 58 10 -1 10 58 87 27 -1 27 87 45 4 -1 28 2 43 88 -1 11 28 88 63 -1 63 88 61 22 -1 40 11 63 89 -1 1 40 89 41 -1 41 89 62 12 -1 62 22 64 90 -1 12 62 90 29 -1 29 90 47 5 -1 30 3 44 91 -1 13 30 91 67 -1 67 91 65 23 -1 42 13 67 92 -1 2 42 92 43 -1 43 92 66 14 -1 66 23 68 93 -1 14 66 93 31 -1 31 93 48 6 -1 34 7 32 94 -1 17 34 94 71 -1 71 94 69 24 -1 46 17 71 95 -1 4 46 95 27 -1 27 95 70 10 -1 70 24 72 96 -1 10 70 96 39 -1 38 0 39 96 -1 170 125 99 139 -1 171 145 103 132 -1 172 130 102 126 -1 173 132 103 128 -1 174 133 104 129 -1 175 123 100 141 -1 176 146 110 127 -1 177 147 117 148 -1 178 137 108 149 -1 179 150 115 144 -1 180 151 118 152 -1 181 133 116 153 -1 182 154 109 138 -1 184 142 113 157 -1 185 158 111 140 -1 186 159 119 160 -1 187 144 115 161 -1 188 162 112 141 -1 189 163 120 164 -1 190 145 116 165 -1 191 166 112 129 -1 192 167 121 168 -1 193 135 106 169 -1 146 170 139 110 -1 117 149 170 146 -1 149 108 125 170 -1 150 171 132 115 -1 118 153 171 150 -1 153 116 145 171 -1 154 172 126 109 -1 157 113 130 172 -1 158 173 128 111 -1 119 161 173 158 -1 161 115 132 173 -1 162 174 129 112 -1 120 165 174 162 -1 165 116 133 174 -1 166 175 141 112 -1 121 169 175 166 -1 169 106 123 175 -1 123 176 127 100 -1 106 148 176 123 -1 148 117 146 176 -1 135 177 148 106 -1 97 134 177 135 -1 134 105 147 177 -1 147 178 149 117 -1 105 122 178 147 -1 122 98 137 178 -1 130 179 144 102 -1 113 152 179 130 -1 152 118 150 179 -1 142 180 152 113 -1 101 143 180 142 -1 143 114 151 180 -1 151 181 153 118 -1 114 131 181 151 -1 131 104 133 181 -1 122 182 138 98 -1 105 156 182 122 -1 134 183 156 105 -1 97 136 183 134 -1 136 107 155 183 -1 107 124 184 155 -1 124 101 142 184 -1 125 185 140 99 -1 108 160 185 125 -1 160 119 158 185 -1 137 186 160 108 -1 98 138 186 137 -1 138 109 159 186 -1 159 187 161 119 -1 109 126 187 159 -1 126 102 144 187 -1 127 188 141 100 -1 110 164 188 127 -1 164 120 162 188 -1 139 189 164 110 -1 99 140 189 139 -1 140 111 163 189 -1 163 190 165 120 -1 111 128 190 163 -1 128 103 145 190 -1 131 191 129 104 -1 114 168 191 131 -1 168 121 166 191 -1 143 192 168 114 -1 101 124 192 143 -1 124 107 167 192 -1 167 193 169 121 -1 107 136 193 167 -1 136 97 135 193 -1 87 58 155 184 -1 60 87 184 157 -1 58 86 183 155 -1 86 59 156 183 -1 85 57 154 182 -1 59 85 182 156 -1 57 75 172 154 -1 75 60 157 172 -1 "
                                  >
                     <Coordinate DEF="coords_ME_Cube"
                                 point="1.000000 1.000000 -1.000000 1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 0.999999 1.000000 0.999999 -1.000001 1.000000 -1.000000 -1.000000 1.000000 -1.000000 1.000000 1.000000 1.000000 -0.000000 -1.000000 0.000000 1.000000 -1.000000 1.000000 1.000000 0.000000 0.000000 -1.000000 -1.000000 1.000000 -1.000000 0.000000 -1.000000 0.000000 -1.000000 -1.000000 -1.000000 0.000000 -1.000000 1.000000 0.000000 1.000000 -0.000001 1.000000 0.000000 1.000000 1.000000 -0.000001 -1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.000000 -1.000000 -0.000000 -0.000000 1.000000 -0.000000 -1.000000 0.000000 -1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 1.000000 -0.500000 -1.000000 -0.500000 1.000000 -1.000000 1.000000 1.000000 0.500000 -0.500000 -1.000000 -1.000000 1.000000 -1.000000 0.500000 -1.000000 0.500000 -1.000000 -1.000000 -1.000000 0.500000 -1.000000 1.000000 0.500000 1.000000 -0.500001 1.000000 -0.500000 1.000000 1.000000 -0.500000 -1.000000 1.000000 -1.000000 0.500000 1.000000 1.000000 0.500000 -1.000000 0.500000 1.000000 -1.000000 1.000000 1.000000 -0.500000 0.500000 -1.000000 -1.000000 1.000000 -1.000000 -0.500000 -1.000000 -0.500000 -1.000000 -1.000000 -1.000000 -0.500000 -1.000000 1.000000 -0.500000 1.000000 0.499999 1.000000 0.500000 1.000000 1.000000 0.499999 -1.000000 1.000000 -1.000000 -0.500000 1.000000 -0.500000 0.000000 -1.000000 0.500000 0.000000 -1.000000 0.000000 0.500000 -1.000000 0.000000 -0.500000 -1.000000 -0.000000 -0.500000 1.000000 0.000000 0.500000 1.000000 0.500000 -0.000000 1.000000 -0.500000 0.000000 1.000000 1.000000 -0.500000 0.000000 1.000000 0.500000 0.000000 1.000000 -0.000000 -0.500000 1.000000 -0.000000 0.500000 -0.500000 -1.000000 0.000000 0.500000 -1.000000 0.000000 -0.000000 -1.000000 -0.500000 -0.000000 -1.000000 0.500000 -1.000000 0.500000 0.000000 -1.000000 -0.500000 0.000000 -1.000000 0.000000 -0.500000 -1.000000 0.000000 0.500000 -0.500000 1.000000 0.000000 0.500000 1.000000 0.000000 0.000000 1.000000 0.500000 0.000000 1.000000 -0.500000 -0.500000 -0.500000 -1.000000 -0.500000 -0.500000 1.000000 1.000000 -0.500000 0.500000 -0.500000 -1.000000 0.500000 -1.000000 0.500000 0.500000 -0.500000 1.000000 -0.500000 -0.500000 0.500000 -1.000000 0.500000 0.500000 -1.000000 0.500000 -0.500000 -1.000000 0.500000 -0.500000 1.000000 0.500000 0.500000 1.000000 -0.500000 0.500000 1.000000 1.000000 -0.500000 -0.500000 1.000000 0.500000 -0.500000 1.000000 0.500000 0.500000 -0.500000 -1.000000 -0.500000 0.500000 -1.000000 -0.500000 0.500000 -1.000000 0.500000 -1.000000 0.500000 -0.500000 -1.000000 -0.500000 -0.500000 -1.000000 -0.500000 0.500000 -0.500000 1.000000 0.500000 0.500000 1.000000 0.500000 0.500000 1.000000 -0.500000 1.128382 1.127072 -1.127072 1.128382 -1.127072 -1.127072 -1.125762 -1.127072 -1.127072 -1.125762 1.127072 -1.127072 1.128383 1.127071 1.127072 1.128381 -1.127073 1.127072 -1.125762 -1.127072 1.127072 -1.125762 1.127072 1.127072 1.128382 -0.000000 -1.127072 0.001310 1.127072 -1.127072 1.128382 1.127072 0.000000 0.001310 -1.127072 -1.127072 1.128382 -1.127072 0.000000 -1.125762 0.000000 -1.127072 -1.125762 -1.127072 0.000000 -1.125762 1.127072 0.000000 1.128382 -0.000001 1.127072 0.001310 1.127072 1.127072 0.001309 -1.127072 1.127072 -1.125762 0.000000 1.127072 0.001310 0.000000 -1.127072 0.001310 -0.000000 1.127072 0.001310 -1.127072 0.000000 -1.125762 0.000000 0.000000 0.001310 1.127072 0.000000 1.128382 -0.563536 -1.127072 -0.562226 1.127072 -1.127072 1.128382 1.127071 0.563536 -0.562226 -1.127072 -1.127072 1.128381 -1.127073 0.563536 -1.125762 0.563536 -1.127072 -1.125762 -1.127072 0.563536 -1.125762 1.127072 0.563536 1.128382 -0.563537 1.127072 -0.562226 1.127072 1.127072 -0.562227 -1.127072 1.127072 -1.125762 0.563536 1.127072 1.128382 0.563536 -1.127072 0.564846 1.127072 -1.127072 1.128382 1.127072 -0.563536 0.564846 -1.127072 -1.127072 1.128382 -1.127072 -0.563536 -1.125762 -0.563536 -1.127072 -1.125762 -1.127072 -0.563536 -1.125762 1.127072 -0.563536 1.128382 0.563535 1.127072 0.564846 1.127072 1.127072 0.564845 -1.127072 1.127072 -1.125762 -0.563536 1.127072 -0.562226 0.000000 -1.127072 0.564846 0.000000 -1.127072 0.001310 0.563536 -1.127072 0.001310 -0.563536 -1.127072 0.001310 -0.563536 1.127072 0.001310 0.563536 1.127072 0.564846 -0.000000 1.127072 -0.562226 0.000000 1.127072 1.128382 -0.563536 0.000000 1.128382 0.563536 0.000000 1.128382 -0.000000 -0.563536 1.128382 -0.000000 0.563536 -0.562226 -1.127072 0.000000 0.564846 -1.127072 0.000000 0.001310 -1.127072 -0.563536 0.001310 -1.127072 0.563536 -1.125762 0.563536 0.000000 -1.125762 -0.563536 0.000000 -1.125762 0.000000 -0.563536 -1.125762 0.000000 0.563536 -0.562226 1.127072 0.000000 0.564846 1.127072 0.000000 0.001310 1.127072 0.563536 0.001310 1.127072 -0.563536 -0.562226 -0.563536 -1.127072 -0.562226 -0.563536 1.127072 1.128382 -0.563536 0.563536 -0.562226 -1.127072 0.563536 -1.125762 0.563536 0.563536 -0.562226 1.127072 -0.563536 -0.562226 0.563536 -1.127072 0.564846 0.563536 -1.127072 0.564846 -0.563536 -1.127072 0.564846 -0.563536 1.127072 0.564846 0.563536 1.127072 -0.562226 0.563536 1.127072 1.128382 -0.563536 -0.563536 1.128382 0.563536 -0.563536 1.128382 0.563536 0.563536 -0.562226 -1.127072 -0.563536 0.564846 -1.127072 -0.563536 0.564846 -1.127072 0.563536 -1.125762 0.563536 -0.563536 -1.125762 -0.563536 -0.563536 -1.125762 -0.563536 0.563536 -0.562226 1.127072 0.563536 0.564846 1.127072 0.563536 0.564846 1.127072 -0.563536 "
                                 />
                  </IndexedFaceSet>
               </Shape>
            </Group>
         </Transform>
      </Transform>
Logged
tfranke
Administrator
Jr. Member
*****
Posts: 89


View Profile
« Reply #1 on: March 09, 2015, 05:05:49 pm »

Hey Adriana,

unfortunately there don't seem to be any screenshots. Can you try again?

Cheers
Logged
mikolaskova
Newbie
*
Posts: 3


View Profile
« Reply #2 on: March 09, 2015, 06:33:17 pm »

I'm attaching them again- actually I can see then, when logged in
Logged
tfranke
Administrator
Jr. Member
*****
Posts: 89


View Profile
« Reply #3 on: March 11, 2015, 11:32:20 am »

Got it!

Do you use X3DOM or the Instant Player? If the bug is in X3DOM, please go to the X3DOM bug tracker on GitHub or the X3DOM mailinglist.

https://github.com/x3dom/x3dom/issues
http://www.x3dom.org/?page_id=3
Logged
mikolaskova
Newbie
*
Posts: 3


View Profile
« Reply #4 on: March 11, 2015, 01:02:57 pm »

ok, it's x3dom, i will go to the mentioned. thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines