Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Generar normales de las paredes en el Room Editor #8

Merged
merged 2 commits into from Aug 10, 2017

Conversation

Javier-Rotelli
Copy link
Member

Primer intento, falta testear bien, y ver si me convence como quedo organizado.

@rejurime, @mysery si lo ven diganme que piensan al respecto

@@ -382,7 +386,7 @@ public TgcMesh toMesh(string meshName)
v.Position = vWall.Position;

//normals
v.Normal = ceroNormal;
v.Normal = Normal;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

antes por defecto siempre ponía 0,0,0 a las normales???? no sabia que hacia eso.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si, lo ponia por defecto y despues hacia un computeNormals, que ahora que veo no lo saque. quizas deberia hacer que si no tiene normal las compute, si tiene que use la que tiene

/// </summary>
public bool AlphaBlendEnable { get; set; }

/// <summary>
/// La normal del plano. por defecto es el vector (0,0,0)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No seria mas el valor por defecto.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

me comi la inicializacion, deberia estar en el constructor

@ghost
Copy link

ghost commented Jul 26, 2017

Me parece que esta correcto, igual no puedo creer que antes asigne una normal 0,0,0.... eso no es una normal...
Si el TgcWall no tiene la normal debería pinchar.

@Javier-Rotelli
Copy link
Member Author

oka, en principio podriamos darle normales basadas en las orientaciones disponibles que son tres, y dar la posibilidad de sobreescribirlo en caso de querer hacerlo.
esto se me hace que esta relacionado:
tgc-utn/tgc-viewer#74

@ghost
Copy link

ghost commented Jul 26, 2017

Ojo porque tools tiene código viejo, o sea en tools no va a desaparecer ese TGCPlaneWall. si esta relacionado igual :P

@Javier-Rotelli Javier-Rotelli merged commit a047b42 into master Aug 10, 2017
@Javier-Rotelli Javier-Rotelli deleted the arreglar-normales-room-editor branch August 10, 2017 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant