That cat is awesome. And so is the script thank you. The only thing is my 
screen comes up really small and I cant zoom in. This is as far as it goes: 



That is a wine glass. I want it bigger so I can fill it with virtual wine 
:) 

Thank you! I doubt I would have gotten to those mapping options right. 

Side Note: I am getting a warning from glscreen() saying: WARNING: 
Base.Uint8 is deprecated, use UInt8 instead.


On Tuesday, 24 November 2015 14:10:09 UTC+2, Simon Danisch wrote:
>
> This is the best GLVisualize can do for you right meow:
>
>
> <https://lh3.googleusercontent.com/-F3zwOjXImQc/VlRP0Xt6P2I/AAAAAAAALMs/5hcFMkQdGiU/s1600/Selection_023.png>
>
>
> You get this with:
>
>
>
> using GLVisualize, FileIO, Colors, GeometryTypes, GLAbstraction
> window, renderloop = glscreen()
> obj = load("cat.obj")
> obj_vizz = visualize(obj, color=RGBA{Float32}(0,0,0,0.1))
> point3d_vizz = visualize(vertices(obj), scale=Vec3f0(0.01))
> axis = visualize(boundingbox(point3d_vizz).value, :grid)
> view(obj_vizz)
> view(point3d_vizz)
> view(axis)
> renderloop()
>
> A lot of improvements are on its way (like better camera, more consistent 
> API and better axis), but this is still not out yet.
>
> I'm not sure what would be possible with a combination of MeshIO and e.g. 
> PyPlot, but I guess it could be better axis/labels + print quality, while 
> being slower ;)
> You quite likely need to do something like:
>
> points = vertices(obj) #GeometryTypes exports vertices(...)
> x,y,z = [p[1] for p in points], map(p->p[2], points), map(last, points) # 
> three different ways of getting the x,y,z coordinates
>
> and then go from there with the PyPlot/matplotlib docs.
>
>
> Am Montag, 9. November 2015 15:55:57 UTC+1 schrieb kleinsplash:
>
>
> Am Montag, 9. November 2015 15:55:57 UTC+1 schrieb kleinsplash:
>>
>> Hi,
>>
>> I am new at this - but have decided that Julia is my language of choice. 
>> So I begin silly question stage: 
>>
>> Could someone talk me through how to access and display an .obj file? 
>>
>> I have gotten so far:
>>
>> using Meshes
>> using PyPlot
>> using FileIO
>> using MeshIO
>>
>> obj = load(filename)
>> vts = obj.vertices 
>>
>>
>> Which gives me: 
>>
>> 502-element Array{FixedSizeArrays.Point{3,Float32},1}:
>>
>>
>>
>> One example point being: 
>>
>> Point(0.00117,-0.02631,0.03907)    
>>
>>                                                                              
>>   
>>
>>   
>>
>> How do I access the verticies to use them with plot? 
>>
>> -A
>>
>>
>>

Reply via email to