Re: [osg-users] osgconv.exe textures getting mangled

2017-01-05 Thread Robert Osfield
On 4 January 2017 at 05:07, Rambabu Repaka  wrote:
> Hi,How to avoid the Fatal nb colors error in texture images.

I am sure I'm not the only one who is often completely confused by
your posts.  I have no clue what you mean by "Fatal nb colors error",
it's just like a random collection of words put in a single sentence.

This example of confusing or meaning free post is not unique amongst
your posts, are large large percentage of your posts are really hard
to pick out what you actually mean, and what the actual problem might
be.

The Language barrier could be part of the issue, I don't know whether
this is a particular problem in your case, I certainly don't envy
others in the world who ended up having to try to get support in a
language other than their native tongue.  I'm in awe of those out in
the community at just how well a bunch of computer geeks get by
despite English not being their first language.  English is my first
language and I struggle...

If language is a particular problem then try to support your questions
with pictures/models, copy and pasting the exactly warnings/errors you
are seeing rather than trying to paraphrase as clearly this is failing
as all too often you common out with sentences that are impossible to
make any sense from.

Also before you send any post take a step back, think about the
problem you have, think about what information others would need to
understand what you see in front of you, we aren't omnipotent, we
can't see what you've done.

This isn't the first time that I have asked you to put more effort
into your posts to the forum, normally if had to provide such advice
to members of the community in the past they fix the problematic style
of posts and posts there after are much easier to follow and provide
support to.  This hasn't yet worked for you, so I'm a lost to what the
specific problem is, why part of convey problems clearly is a
struggle.

Fixing this problem of communicating issues will be far more important
to address than the immediate technical issue that you have in front
of you.  There will also be technical issue that pop up from time to
time, you need to fix the communication issues.  If there are specific
reasons that your struggle on the communication front then tell us and
we might be able to provide pointers.

What we can't do is keep on with the current approach you have towards
the community, it's painful for us, unhelpful to you, and is a poor
example to the rest of the community.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,How to avoid the Fatal nb colors error in texture images.

... 

Thank you!

Cheers,
Rambabu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69851#69851





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,4 Texture images are loading  remaining texture images are not loading to 
the model what i have to do ?

... 

Thank you!

Cheers,
Rambabu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69849#69849





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Jan Ciger
On Tue, Jan 3, 2017 at 1:49 PM, Rambabu Repaka 
wrote:

> Hi,Iam using osg 3.5.1 version Textures are not loading to the model it is
> showing  Warning: [ReaderWriterOBJ::convertElementListToGeometry] Some
> faces from geometry '' were reversed by the plugin.I converted the model
> into .osgb format but textures are not adding to the model.
>

Do you have the textures correctly applied to your model? I.e. you need the
.mtl file with your .obj and the texture needs to be in the path specified
in the .mtl

Second, the error message about reversed faces means that your model has
inconsistent winding order (clockwise vs anticlockwise). You should check
that because it could mean that your normals will be wrong and faces get
removed/culled by backface culling, making the model either disappear or
have "holes".

Conversion to .osgb won't help you any, because the converter uses the same
obj loader as the viewer. So if it doesn't work with the viewer, it won't
work after the conversion neither.

Regards,

J.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,My Texture image files are in .png and .jpeg format.

... 

Thank you!

Cheers,
Rambabu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69838#69838





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2017-01-03 Thread Rambabu Repaka
Hi,Iam using osg 3.5.1 version Textures are not loading to the model it is 
showing  Warning: [ReaderWriterOBJ::convertElementListToGeometry] Some faces 
from geometry '' were reversed by the plugin.I converted the model into .osgb 
format but textures are not adding to the model.

... 

Thank you!

Cheers,
Rambabu

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69837#69837





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Joakim Simonsson

On Thu, 06 Aug 2009 10:31:57 +0200, Mach Bhai sar...@dsi.co.ae wrote:


Hi,
I have a model in ive format and osgviewer displays it fine. However if  
i convert it to osg, i get black and white shaded files as textures,  
which are of no use. I am using osgconv.exe with the following command  
line


osgconv.exe -e osg -O OutputTextureFiles -O precision:0.001 model.ive  
model.osg


Try

osgconv.exe -e osg -O OutputTextureFiles precision 4 model.ive model.osg

precision takes an integer
multiple options are space separated

--
Joakim Simonsson
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
Thanks but it didnt work. I am still not getting correct textures.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15901#15901





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Joakim Simonsson
On Thu, 06 Aug 2009 14:00:15 +0200, Joakim Simonsson joa...@autosim.no  
wrote:



On Thu, 06 Aug 2009 10:31:57 +0200, Mach Bhai sar...@dsi.co.ae wrote:


Hi,
I have a model in ive format and osgviewer displays it fine. However if  
i convert it to osg, i get black and white shaded files as textures,  
which are of no use. I am using osgconv.exe with the following command  
line


osgconv.exe -e osg -O OutputTextureFiles -O precision:0.001 model.ive  
model.osg


Try

osgconv.exe -e osg -O OutputTextureFiles precision 4 model.ive  
model.osg


precision takes an integer
multiple options are space separated


When I try the OutputTextureFiles option, I also get black and white  
striped textures.


What image format do you use? I use .rgb.

If you also use .rgb, perhaps it is something with the .rgb plugin...

--
Joakim Simonsson
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
Yes i am also getting rgb files. It might be that something is wrong with that 
plugin but i cannot verify. Can we specify the format of the texture ?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15904#15904





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Joakim Simonsson

No, it is not possible.

The current osg implementation looks for the filename extension for the  
texture inside the .ive file.
If the texture originally was an .rgb texture, it will try to write it to  
that format as well.


On Thu, 06 Aug 2009 14:17:43 +0200, Mach Bhai sar...@dsi.co.ae wrote:

Yes i am also getting rgb files. It might be that something is wrong  
with that plugin but i cannot verify. Can we specify the format of the  
texture ?


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15904#15904





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
Joakim Simonsson
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
So how can this issue be resolved ?

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15908#15908





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Joakim Simonsson

You are using compressed textures in the ive file, right?

I figured out that the rgb plugin can't write compressed textures.

The only pixel formats that are supported are:


GLenum pixelFormat = img.getPixelFormat();

raw.sizeZ =
pixelFormat == GL_COLOR_INDEX? 1 :
pixelFormat == GL_RED? 1 :
pixelFormat == GL_GREEN? 1 :
pixelFormat == GL_BLUE? 1 :
pixelFormat == GL_ALPHA? 1 :
pixelFormat == GL_RGB? 3 :
pixelFormat == GL_BGR ? 3 :
pixelFormat == GL_RGBA? 4 :
pixelFormat == GL_BGRA? 4 :
pixelFormat == GL_LUMINANCE? 1 :
pixelFormat == GL_LUMINANCE_ALPHA ? 2 : 1;

When an compressed pixelformat (0x83f0) is encountered, it is treated as  
an unknown pixel format. And hence 1 is used for sizeZ...



On Thu, 06 Aug 2009 14:42:03 +0200, Mach Bhai sar...@dsi.co.ae wrote:


So how can this issue be resolved ?


The issue can be solved by extending the rgb plugin, so that it can write  
compressed textures.


OR

Don't compress your textures when you create the ive file...

--
Joakim Simonsson
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
I will want to go with the first approach and add support for writing 
compressed textures. 
So how can I go about uncompressing this data ? Any clues ?

and thanks for your help.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15911#15911





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Joakim Simonsson

On Thu, 06 Aug 2009 14:55:12 +0200, Mach Bhai sar...@dsi.co.ae wrote:

I will want to go with the first approach and add support for writing  
compressed textures.

So how can I go about uncompressing this data ? Any clues ?


You have to write an S3TC uncompressor.

I have done this in a school project some years ago... If you want I can  
try to dig up that code.




and thanks for your help.



--
Joakim Simonsson
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
If you can do that, it would be very kind of you.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15915#15915





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Joakim Simonsson

Gotta go now. See what I can do tomorrow.

On Thu, 06 Aug 2009 15:24:40 +0200, Mach Bhai sar...@dsi.co.ae wrote:


If you can do that, it would be very kind of you.


--
Joakim Simonsson
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
thanks i am looking forward to your help

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15917#15917





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Robert Osfield
Hi Mach,

The .dds plugin supports writing compressed textures, so changing the
extension of the images from .rgb to .dds would probably do the trick.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
Thanks, i only have the ive files, i dont have the original texture files.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15919#15919





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Mach Bhai
Hi,

After tinkering with the code, i changed the filename to dds in the code and 
then in the resulting osg file also, i changed all references to .dds

Worked like a charm :)

Thanks to all of you.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15920#15920





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread dtidrow
 Hi Mach,

 The .dds plugin supports writing compressed textures, so changing the
 extension of the images from .rgb to .dds would probably do the trick.

 Robert.

I had a similar problem with .ive files containing compressed textures,
but named with .rgb extensions.  I had to do basically what Robert is
suggesting, though I don't recall whether I wrote a visitor to do the
renaming or modded one of the plugins.  As soon as I find the code I'll
post the relevant sections.

Don

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgconv.exe textures getting mangled

2009-08-06 Thread Chris 'Xenon' Hanson
Joakim Simonsson wrote:
 Gotta go now. See what I can do tomorrow.
 On Thu, 06 Aug 2009 15:24:40 +0200, Mach Bhai sar...@dsi.co.ae wrote:
 If you can do that, it would be very kind of you.

  LibSquish:
http://code.google.com/p/libsquish/

  Supports the DXT1, DXT3 and DXT5 formats for both compression and 
decompression.

  http://en.wikipedia.org/wiki/S3_Texture_Compression

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
There is no Truth. There is only Perception. To Perceive is to Exist. - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org