Look and Feel of REVOLVEs

Home Forums Problems and solutions in GDL 3D modelling Look and Feel of REVOLVEs

This topic contains 3 replies, has 3 voices, and was last updated by  Joachim Sühlo 3 months, 1 week ago.

  • Author
    Posts
  • #4493

    Joachim Sühlo
    Participant

    I always have the problem, that REVOLVEs have shadows in open GL that are looking strange and wrong.
    See attached images with REVOLVE, REVOLV{2} and TUBE.
    TUBE always looks better.
    Or is there a trick to get REVOLVING looking correct?
    REVOLVE images

    GDL Object Developer
    b-prisma
    MAC OSx 10.12

  • #4496

    Barry Kelly
    Participant

    Is it a case of aligning the material with the COOR command after the REVOLVE?

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

  • #4497

    Péter Baksa
    Participant

    Hi,

    REVOLVE was designed to work with curved profiles, use status code 2 on sharp edges,

    roty -90
    material mat
    revolve{2} 10, 0, 360, 4+8, mat,
    		0,	1,	2,	mat,	! sharp edge
    		0,	2,	1,	mat,	! smooth edge, contour not shown
    		0.02,	2.05,	1,	mat,
    		0.05,	2.08,	1,	mat,
    		0.1,	2.1,	0,	mat,	! smooth edge, contour shown
    		0.9,	2.1,	0,	mat,
    		0.95,	2.08,	1,	mat,
    		0.98,	2.05,	1,	mat,
    		1,	2,	1,	mat,
    		1,	1,	2,	mat
    
    del 1

    This means you can’t have a sharp edge without a contour.

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

  • #4498

    Joachim Sühlo
    Participant

    Tank You Péter, perfect !

    GDL Object Developer
    b-prisma
    MAC OSx 10.12

You must be logged in to reply to this topic.