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
Related
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
Do we have some clear guide on how to generate pdf in android which includes tabular data too, with custom fonts like devnagri etc? I have tried itext pdf but text other than English shows blank. Any free or paid library will be helpful.
If you can draw it on screen then you can draw it to a pdf with the built in PdfDocument Class as you can use any laid out view (either got from what is already on screen or manually laying it out yourself) and then use the View's draw method to draw it to the PDF.
So for the tabular data you can use a TableLayout or other methods and the standard fonts available to your app.
Note the Pdf is a bitmap of the contents (e.g. the text is not editable)
I want to import some vector graphics from illustrator for the design of my android studio app. If I export my vector graphics as SVG, this works wonderfully. All parts of my project are successfully exported and the result is satisfactory (image 1). However, when I create this SVG file as a new Vector Asset in Android Studio, one of my blue circles is suddenly missing (see image 2). What can be the reasons why Android studio does not import all parts of my SVG? Or could the reason be a wrong export from illustrator?
Edit: Added Picture 3 to show what happens if I use a online converter instead. The output is even worse.
Any Help is appreciated!
Picture 1:
Picture 2:
Image 3...Result when I use a online converter to get a xml vector(also wrong)*
The version of the SVG that is displayed in the converter window is rendered by a built-in SVG renderer in Android Studio. It's a preview of the SVG. It does not necessarily reflect what the output of the converter will be.
So the bug you are seeing is with the built-in SVG renderer.
VectorDrawables don't really support gradient fills. At least the converter doesn't support them. So even if the displayed SVG were perfect, the generated VectorDrawable won't include the gradient circles anyway.
So you have a few alternative approaches:
Change your circles to solid fill and then convert to VectorDrawables.
Like #1, but add gradients by using predefined gradient definitions.
Use an actual SVG rendering library (like AndroidSVG) in your app.
Switch to using a bitmap background (ie PNG)
Draw the background yourself using Canvas methods.
Personally, I would go with #3.
Android Studio doesn't convert complex graphics into vector drawable. It only converts flat icons. You have to use a png here dude !!
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 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