I want to display my 3D model on my Android app. I have .obj file and .mtl file. I read .obj file and show the model with open GL but it have not color so I need to import my .mtl file but I don't know how to read and apply material on this file to my model on open GL. Please show me the way.
I want to show my 3D model with material read from .mtl file
Related
I need to use an icon of a contract on my app.
Usually, I'd create a new Vector Asset and lookup for an icon that might do the job.
Unfortunately, this time I couldn't find anything similar to my needs, so I want to create one!
I tried reading about the issue here but it wasn't really helpful.
can someone tell me how to do that and what is that pathData?
Thanks!
You can create vector assets from SVG sources. If you want to create your own icon, you should probably use a graphics program that can export drawings as SVG. Inkscape for example is free and available for a lot of platforms.
When you have the SVG file, in AndroidStudio select File -> New -> Vector Asset. In the upcoming dialog, select Asset Type 'Local file' and then pick/enter the path to your SVG.
You can download from the web / create by photoshop your own SVG files , once you have .svg file you can add it to your project by right click on app > new > Vector Asset > Local file (SVG,PSD) and use it as you normally use android:src="#drawable/ic_my_icon"
now a pathData is A path that represents the outline of a shape which can be filled or stroked. A path can also be used as a clipping path, to describe animation, or position text.
But for me what really did the job was just playing with the numbers of it and see the reaction of the actual path, what do i mean ?
Check out ShapeShifter and watch this video , drag some .svg files from the web and start playing with it , I'm sure you will get the idea .
How to use the .bimx file in the Android 3D model viewer?
Have seen this view in https://play.google.com/store/apps/details?id=com.graphisoft.bimx
My texture image (.png file) seems to be ignored somehow and my 3D model (.obj file) is displayed in one colour. Both built in Blender.
It appeared that I haven't included a MTL file in my project...
I wanna show areas on the map, each area has its own .kml file, how can I import them to osmdroid and show them automatically ?
You should have one kml file for all areas not one file per area.
But you can OSMBonusPack to load kml file in osmdroid map.
Also you can see this example.
To complement the answer from Seyyed, and assuming these files are not too big:
You can have one kml file for each area, and then build a simple "global" file, referencing all these area files with a "NetworkLink" (look at to KML Reference if needed for the syntax).
I am loading .obj file with material file.
I have scale down my .obj like below
mObjectGroup.setScale(.01f);
In Blender it is rendered perfect fine, but when i render it using rajawali some material get blurred.
In Blender it lloks like it
And in android after rendering images get blurred.
As I recall using .obj with materials is a mess! Try exporting as FBX or any other format