Re: [brlcad-devel] Some OGV improvements

2017-01-24 Thread Oleksandr Dubenko
Update on importing '.g' files with colors. First of all, I made little improvement in converting to obj. Instad of passing all parts to g-obj it now passes only top-level objects (tops). Then I started wokring on importing color from .g to .mtl file (Materials file for .obj). Picking colors from .

Re: [brlcad-devel] Some OGV improvements

2016-10-09 Thread Gauravjeet Singh
On Sun, Oct 9, 2016 at 4:23 PM, Oleksandr Dubenko wrote: > That is the same error you mentioned before, isn't it? > https://www.mail-archive.com/brlcad-devel@lists.sourceforge.net/msg05983.html Yeah, Earlier on facing this error, I made an assumption that my merging approach is wrong, so I starte

Re: [brlcad-devel] Some OGV improvements

2016-10-09 Thread Oleksandr Dubenko
> > When I uploaded the file, truck.g, merging and conversion worked pretty > fine. > But when I upload the file toyjeep.g, I get the following error That is the same error you mentioned before, isn't it? https://www.mail-archive.com/brlcad-devel@lists.sourceforge.net/msg05983.html Can you share

Re: [brlcad-devel] Some OGV improvements

2016-10-09 Thread Gauravjeet Singh
On Wed, Aug 31, 2016 at 2:11 PM, Gauravjeet Singh wrote: > I still need to take a bit deeper look into the code. I was testing with various g files, the merging doesn't work for all g files that come with BRL-CAD installation. When I uploaded the file, truck.g, merging and conversion worked prett

Re: [brlcad-devel] Some OGV improvements

2016-09-13 Thread Christopher Sean Morrison
On Sep 13, 2016, at 12:47 PM, Oleksandr Dubenko wrote: If it preserves the original colors, then absolutely!  That'd be an improvement.  Did you handle the override flag?  How do you identify the color? I get the RGB color from .asc files from this types of lines. attr set {zz.r} {color}

Re: [brlcad-devel] Some OGV improvements

2016-09-13 Thread Oleksandr Dubenko
> > If it preserves the original colors, then absolutely! That'd be an > improvement. Did you handle the override flag? How do you identify the > color? I get the RGB color from .asc files from this types of lines. attr set {zz.r} {color} *{0/0/255}* {region} {R} {sh... And I'm not sure what

Re: [brlcad-devel] Some OGV improvements

2016-09-07 Thread Christopher Sean Morrison
On Sep 1, 2016, at 12:50 PM, Oleksandr Dubenko wrote: > > I thought about it, but more about being able to color separate parts. And I > think I got a solution. > The .g file contains info not only about geometry but also about color. So I > created new converting script from scratch that c

Re: [brlcad-devel] Some OGV improvements

2016-09-01 Thread Oleksandr Dubenko
> > Also, this disrupts the working of show/hide tools. > We need to find the way to have the obj for each part too and render > them only when working with show/hide tools. I thought about it, but more about being able to color separate parts. And I think I got a solution. The .g file contains i

Re: [brlcad-devel] Some OGV improvements

2016-08-31 Thread Inderpreet Singh
On Wed, Aug 31, 2016 at 4:39 PM, Oleksandr Dubenko wrote: > Developing webapp without browser is hardcore :D Ha! I was referring to wider BRL-CAD community. > IRC is fine, I like it, but I think Slack provides better environment for > developing and can attract new people. I'm not insisting it's

Re: [brlcad-devel] Some OGV improvements

2016-08-31 Thread Oleksandr Dubenko
> > Can you please share details of your server? Operating System, it's > version and so on. It's a simple VPS (2x2.66GHz, 1 GB ram and 30 GB SSD) with Ubuntu 14.04 installed. Many of us are old-dogs here ;) and sometimes choose to not have a machine > with browser installed. Developing webapp

Re: [brlcad-devel] Some OGV improvements

2016-08-31 Thread Gauravjeet Singh
On Wed, Aug 31, 2016 at 1:21 AM, Inderpreet Singh wrote: > @Gaurav, I read on your blog post that you have been assigned via your > school to work on OGV for next whole semester. Please sync with > Oleksander. Ah! Great. Let's make OGV awesome together :) -- Fear is wisdom in the face of dange

Re: [brlcad-devel] Some OGV improvements

2016-08-31 Thread Gauravjeet Singh
On Wed, Aug 24, 2016 at 9:14 PM, Inderpreet Singh wrote: > @Gaurav, can you also please take a look at it and help me in merging > it properly. Hello! Good work Oleksandr. I still need to take a bit deeper look into the code. Also, this disrupts the working of show/hide tools. We need to find t

Re: [brlcad-devel] Some OGV improvements

2016-08-30 Thread Inderpreet Singh
On Tue, Aug 30, 2016 at 11:16 PM, Oleksandr Dubenko wrote: > > For the next month, until new semester starts, I plan to contribute more to > OGV. I shared some ideas in my recent blog post. I also really want to set > up Slack team because mail is kinda slow. Let me know what you think. You are o

Re: [brlcad-devel] Some OGV improvements

2016-08-30 Thread Oleksandr Dubenko
I deployed OGV on my server (with new changes) so everyone can checkout. Link directly to the model for the lazy ;) For the next month, until new semester starts, I plan to contribute more to OGV. I shared some ideas in my rec

Re: [brlcad-devel] Some OGV improvements

2016-08-24 Thread Inderpreet Singh
On Wed, Aug 24, 2016 at 6:09 PM, Oleksandr Dubenko wrote: > Next I wanted to improve performance because model viewer lags badly. I > disabled AA and set device pixel ratio for WebGLRenderer. Also currently it > renders scene every frame but we don't need it. It should render only if > scene chang