|
POST
|
I'm missing the georeferencing metadata files, like the .prj. Can you add them here ? Note that the projection of all imported raster files need to match the target SCS ( Scene Coordinate System ) projection. CE can reproject vector data on import, but not reproject raster files. Let me know.. m.
... View more
08-05-2013
12:23 AM
|
0
|
0
|
2383
|
|
POST
|
Yes, the code goes in a CGA file, not in the terrain layer. You want to texture a part of the model which is created based on a shape. So the code should look like :
satelliteImage = "maps/mySatellitePic.jpg"
satelliteImageData(data) =
case data == "SX" : 1000
case data == "SZ" : 1000
case data == "OX" : 1000
case data == "OZ" : -1000
else : 1
@StartRule
Building -->
extrude(HAUTEUR)
comp(f) { top : Roof | side : Facade }
Roof -->
setupProjection(0,world.xz,satelliteImageData("SX"), -satelliteImageData("SZ"),satelliteImageData("OX"),satelliteImageData("OZ"))
projectUV(0)
texture(satelliteImage)
Roof.
Then, edit the 4 values with the values you find in your actual terrain layer. Sorry that this was unclear. All start is hard .. 🙂 m.
... View more
08-02-2013
06:56 AM
|
0
|
0
|
2804
|
|
POST
|
hmm. can you post the files ? [maybe in downsampled quality] the resolutions are also below 4000x4000 pixels, right ? matt
... View more
08-02-2013
06:23 AM
|
0
|
0
|
4526
|
|
POST
|
Hi, Thanks for the files. Checked them. I can reproduce the issue in CE. Though I also tried to open the file in ArcMap, which failed too. 'error: could not open feature class'. So the file itself seems garbled. If ArcMap cannot open the file, how should CE do it .. 😉 Does that help you a bit further ? Maybe track down which process kills the shape file, ok ? Matt
... View more
08-02-2013
05:46 AM
|
0
|
0
|
2607
|
|
POST
|
1] Just for some more understanding : 1st post here : http://forums.arcgis.com/threads/76669-Shapes-VS.-Models-VS.-MultiPatch --> if buildings with textures are disappearing, they've not been converted to models. [Use a simple rule to do that.] 2] I need more details on the gaps. Not sure what you mean .. m.
... View more
08-02-2013
05:11 AM
|
0
|
0
|
3461
|
|
POST
|
Hi ! Why are you using 'Road' and not the default which is 'Street' ? Street and Sidewalk are the default Start Rules which are set by CityEngine. So if you have according start rules in your code, then everything works automatically. Of course you can override those defaults, but it just makes your life harder. --> 1] create your street shapes 2] select 1 shape > RMB click > select shapes in same layer 3] drag and drop rule on those selected shapes 4] done. Note that drag-n-drop automatically triggers the model generation if the @StartRule annotations are well-defined. ok ?
... View more
08-02-2013
04:24 AM
|
0
|
0
|
1561
|
|
POST
|
Ah, no, the original. To reproduce WHY they don't export. The 3ws only shows the wrong result, that does not help .. 😉 m.
... View more
08-02-2013
04:07 AM
|
0
|
0
|
2291
|
|
POST
|
Hi, Can you post a screenshot ? Also, maybe play with the U and V subdivision values of the terrain layer in the Inspector. (Press 7 to activate wireframes and set the wireframe alpha to 0.2 in the terrain layer ) Let me know. Matt
... View more
08-02-2013
04:06 AM
|
0
|
0
|
704
|
|
POST
|
Hi, The thing I posted is a 'newer', more clean version of what Thibault also posted. Though the code posted only contains the code to texture the shape. So I'm not sure if you did not add the rest of the code. As you see in my code, the actual Rule is not defined .. E.g. Roof --> Let me know .. m.
... View more
08-02-2013
04:04 AM
|
0
|
0
|
2804
|
|
POST
|
hi, did you see the tutorial videos already ? note that a terrain has 1 slot for the DEM and 1 slot for the texture ( satellite pic ). It seems you have assigned the DEM to both slots. ok ? m.
... View more
08-02-2013
03:58 AM
|
0
|
0
|
4526
|
|
POST
|
Hi, our developer to whom I sent the question is completely swamped with work, so I need to ask you for some more time. [just as a note: since the scene light layer inside CityEngine does not give you precise time- and location-based shadows, you may use an other tool for this anyway, where you have full control.] hope to be able to post an answer soon! matt
... View more
08-02-2013
12:09 AM
|
0
|
0
|
2528
|
|
POST
|
hi, can you post the files, maybe that's best to test for me .. let me know .. matt
... View more
07-31-2013
12:59 AM
|
0
|
0
|
4255
|
|
POST
|
hmm. can you wrap up the files and post here ? 1 building should be enough to track this down. let me know. m.
... View more
07-31-2013
12:56 AM
|
0
|
0
|
2291
|
|
POST
|
Sure ! Just change the values to your terrain's values ( select terrain layer, check values in Inspector. ) Note that CityEngine is yUp, not zUp as ArcGIS ) satelliteImage = "maps/mySatellitePic.jpg" satelliteImageData(data) = case data == "SX" : 1000 case data == "SZ" : 1000 case data == "OX" : 1000 case data == "OZ" : -1000 else : 1 setupProjection(0,world.xz,satelliteImageData("SX"), -satelliteImageData("SZ"), satelliteImageData("OX"), satelliteImageData("OZ")) projectUV(0) texture(satelliteImage) let me know if this works .. matt
... View more
07-31-2013
12:52 AM
|
0
|
0
|
2804
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-06-2012 08:40 AM | |
| 1 | 09-30-2013 08:33 AM | |
| 1 | 08-07-2013 04:45 AM | |
| 1 | 10-15-2012 02:19 AM | |
| 1 | 01-30-2014 12:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|