Open alexv71 opened 6 years ago
Do you have original QGIS project? Duplicate the point layer in QGIS layer tree, and then include them to export with preferable settings.
Thank you so much for the answer. Yes, I have original project. And it is good decision for static project. Probably, I didn't give enough explanations, and my question was bad formulated. I need to use more complex 3D objects than simple cylinders or spheres, and use more parameters from objects data table. And, for example, I may need to move, or rotate this complex object as a whole (as I mentioned in previous question). And i would be very difficult, if I use different QGIS layers.
Have you tried using JSON or Collada models as your objects? That would embed the model into your project with an attached attribute table. Then you could manipulate it as we discussed above.
https://qgis2threejs.readthedocs.io/en/docs-release/ObjectTypes.html#collada-model
Thank you, it is a good idea. But I don't know, how to create these models (Collada and JSON). I don't need a very complex models, and it seems, the JSON models would be a best choice. But it described in documentation very briefly. Please let me know more about JSON models, where to get information, how to create, manipulate, etc.
What sort of model are you trying to render here?
You can probably download something close to what you want from a website like Free3D, TurboSquid, or BlendSwap.
If you can't find an appropriate model for your need then you can always learn some basic Blender skills and model something yourself.
I need to draw the things like pipes http://qgis2threejs.readthedocs.io/en/docs-release/ObjectTypes.html#pipe, but in 3D. Some simple objects, with few cylinder elements. May be two or three segments. But I need to manipulate them as a whole, for example move or rotate using keyboard or mouse. I thought, I need just to insert additional cylinders into appropriate place in the object tree, but I misunderstood how to do that. May be I need to create simple JSON models...
It sounds like your model is going to be pretty basic. Blender is probably going to be your best bet.
Here's as good a place as any to get started:
https://www.youtube.com/watch?v=JYj6e-72RDs&index=2&list=PLjEaoINr3zgHs8uzT3yqe4iHGfkCmMJ0P
Have been attempting to use various Collada models as my objects for several point shapefiles. All renders OK if a Collada object is linked to only a single point shapefile. When I assign different Collada models to two or more point shapefiles, rendering is somewhat erratic. In the initial browser view:
It's my understanding that the use of Collada and/or Json models is still experimental and rendering issues may be encountered. Any suggestions as to what I could possibly try to permit the successful display of multiple Collada models in the browser?
Thanks for any assistance that you may be able to provide.
2old2die, hmmm I'm not sure what's going on here. Do you have your files hosted anywhere that we could take a look at them?
DigDigDig: No, all the output files from QGIS2Threejs remain local to my Windows 10 PC. I have not attempted to host them. I typically just open the local QGIS2Threejs created HTML file with my browser of choice. I then position the 3D scene and take screenshots (Shift+S). Note that this is my 1st attempt at using Collada models as my objects. I'm open to any suggestions as to how I could best share the files with you. Thanks for the reply.
DigDigDig: Just realized that your question regarding "files hosted anywhere" might be the answer to resolving my issue of multiple Collada files. I should not have raised this as a possible issue prior to testing in a proper server environment. My apologies. Please disregard this as an issue. I'll establish and test on a server. If I experience the same issues, then I'll raise this as a possible issue. Regards!
I have a project at three.js created from qgis to threejs export. And I have point layer (cylinders with different height). How to add something else, any other objects, in addition to cylinders? For example, I want to add spheres with various radius, or with various colors on the top of these cylinders. And color or size should depend on value of one of object parameters. Like height of cylinders. How to do that?