New addon : Cosmological grid layer

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
Cham M
Posts: 4325
Joined: 14.01.2004
Age: 54
With us: 15 years 7 months
Location: Montreal

Re: New addon : Cosmological grid layer

Post #21by Cham » 10.08.2008, 12:32

The cube is an alternate way, with a subtle color (add a material in the header, just below the first two materials) :

Code: Select all

material
   emissive 0.45 0 0  # Weak red
   diffuse  0.45 0 0
   opacity 0.3
end_material


Add this code at the end of the file :

Code: Select all

####### box

mesh vertexdesc position f3 end_vertexdesc

vertices 2
10 10 10
10 10 -10

linestrip 2 2
0
1
end_mesh

mesh vertexdesc position f3 end_vertexdesc

vertices 2
10 -10 10
10 -10 -10

linestrip 2 2
0
1
end_mesh

mesh vertexdesc position f3 end_vertexdesc

vertices 2
-10 -10 10
-10 -10 -10

linestrip 2 2
0
1
end_mesh

mesh vertexdesc position f3 end_vertexdesc

vertices 2
-10 10 10
-10 10 -10

linestrip 2 2
0
1
end_mesh

mesh vertexdesc position f3 end_vertexdesc

vertices 4
10 10 10
10 -10 10
-10 -10 10
-10 10 10

linestrip 2 5
0
1
2
3
0

end_mesh

mesh vertexdesc position f3 end_vertexdesc

vertices 4
10 10 -10
10 -10 -10
-10 -10 -10
-10 10 -10

linestrip 2 5
0
1
2
3
0

end_mesh
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 14 years 6 months

Re: New addon : Cosmological grid layer

Post #22by ElChristou » 10.08.2008, 13:07

After testing the cube I think I still prefer my above mod for two reasons: less vertices for same info (it's easy enough to mentally rebuild the total cube) and I still prefer yellow, related to the original yellow line and scale.
Image

Avatar
Topic author
Cham M
Posts: 4325
Joined: 14.01.2004
Age: 54
With us: 15 years 7 months
Location: Montreal

Re: New addon : Cosmological grid layer

Post #23by Cham » 10.08.2008, 13:10

Yes, I'm not satisfied by the red color either, in this case.

However, I still think there are too much lines with the cube or the other way. I prefer a flat grid. Of course, anyone is free to edit the model and add the cube or the other configuration. It's really easy to do.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Liar
Posts: 25
Joined: 26.03.2006
With us: 13 years 4 months
Location: Melbourne

Re: New addon : Cosmological grid layer

Post #24by Liar » 30.11.2012, 13:58

Has anyone made a sphere/is there an easy way to do this?

I think this would be the best solution of all.

Avatar
selden
Developer
Posts: 10063
Joined: 04.09.2002
With us: 16 years 11 months
Location: NY, USA

Re: New addon : Cosmological grid layer

Post #25by selden » 30.11.2012, 15:02

Selden


Return to “Add-on development”

Who is online

Users browsing this forum: 8 guests