I am trying to implement 3D tiles into the project based on cesium. I am using cesium as npm in one angular project. I am quite confused, how to implement 3D Tiles. Do you have any idea?
cesium has a 3d-tiles branch – I believe for now you have to use a custom build (instead of the npm version).
Related
I have running Autodesk Forge Viewer and I was wondering if there is a know feature to add custom Lighting and Environments from an HDRI file since I was unable to find any helpful information in the Documentation. Does the Viewer support this feature or how would one go about adding a custom environment.
Customizing the environment maps is not an officially supported feature, but it can be done with a bit of hacking. The viewer uses DDS files for environment maps. Check out https://github.com/wallabyway/adding-shadows#sharper-ibl-reflections-image-based-light-ie-skybox for more info.
I am just starting out with reinforcement learning and trying to create a custom environment with OpenAI gym. However, I am stumped with trying to create an environment (with roads and intersections) from map data, say Google Maps.
Would appreciate any help I can get.
The best way that I have found would be to use osmnx to have your map data ready in a graph format. It allows easy access of nodes that make up a street map in a graph or geopandas form. This data can then be used to drive the game logic. With regards to rendering, external rendering tools like PyGame can then be used.
I am creating a software for calculating gearbox parts using Swing and OpenGL (with JOGL).
With this software the calculated parts are shown in 3D. The following picture shows an example part:
At first the geometry is specified/calculated (tip/root Diameter, width, number of teeth...) and out of this data the 3D-part is created. This example part is made with JOGL-Code because it's easy to use for me and can be integrated in a Swing-GUI.
Now a played around a bit with JavaFX Application GUI's and decided to continue making my software in JavaFX because it offers everything i need, looks much better and so on. The problem is I can't use my JOGL-OpenGL graphics.
So here are the possibilities for me:
Search for a way to integrate OpenGL-graphics in a JavaFX-Application - but I googled a bit and this seems to be quite difficult and the possible solutions seem to be very slow.
Use JavaFX integrated 3D-graphics (TriangleMesh) - but this is difficult to understand and I can't find good examples to learn it.
Any other solution?
Can you please help me finding a good solution? What would you do? My favorite would be to continue using OpenGL, but is there any good solution for this yet?
If you are looking for some JavaFX 3D resources that may help you decide whether its already mature or not, these are available, among others:
3DViewer here from the OpenFJX project.
InteractiveMesh importers and browser.
F(X)yz, a new JavaFX 3D library that provides additional primitives, composite objects, controls and data visualizations that the base JavaFX 8 3D packages do not have.
Multimodel3DFX, repository contains the code for the example shown on the article "Building Castles in the Sky. Using JavaFX 3D to model historical treasures" published in Oracle Java Magazine, issue from November/Dicember 2014.
Using a PolyLine3D from F(X)yz and the Multimodel3DFX plaftorm I was able to extrude a 2D polyline of a spur gear, so you can see how it's rendered in a JavaFX 3D subscene:
These are also mathematical 3D models generated using the F(X)yz library, all of them based on TriangleMesh.
As you can see, JavaFX 3D API, with its pros and cons, can be easily extended to achieve complex tasks.
i was able to integrate starling in my flashdevelop enviroment and Im able to create quads with the built in Quad class.
Now I need to create circles.
How do I create circles with code?
Mirza
I believe that Starling doesn't have a Drawing API by default, but you can check out this drawing API :
https://github.com/StarlingGraphics/Starling-Extension-Graphics
There are likely other extensions to add the same functionality.
Edit : -- Please also see the first comment by #jpop under the question as if you don't need to redraw the graphics often, it's an excellent solution that doesn't require the extension.
I am having problems using JSON and ASIHTTPRequest with iOS 5. When I add the frameworks for ASIHTTPRequest and JSON to my project I get many ARC errors. How do I avoid these ARC restrictions with the frameworks while still using ASIHTTPRequest in iOS 5?
You can disable ARC for certain files with the compile flag -fno-objc-arc.
So, go to your target's settings and switch to the tab Build Phases. Under Compile Sources, you can enter the compile flags for all your source files.