Board index FlightGear Development Canvas

Reflection on a surface "painted" with a canvas ...  Topic is solved

Canvas is FlightGear's new fully scriptable 2D drawing system that will allow you to easily create new instruments, HUDs and even GUI dialogs and custom GUI widgets, without having to write C++ code and without having to rebuild FlightGear.

Reflection on a surface "painted" with a canvas ...

Postby abassign » Wed Sep 19, 2018 8:51 am

I have a problem with the use of canvas in place of liveries, or how to get the effects of reflection on a surface "painted" with a canvas?

Image
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Reflection on a surface "painted" with a canvas ...  

Postby Thorsten » Wed Sep 19, 2018 11:26 am

For the renderer a canvas is just a texture, there's nothing peculiar about it.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Reflection on a surface "painted" with a canvas ...

Postby Hooray » Sun Sep 23, 2018 5:50 pm

You might want to review/update the wiki accordingly: http://wiki.flightgear.org/Howto:Dynami ... via_Canvas
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Reflection on a surface "painted" with a canvas ...

Postby abassign » Mon Sep 24, 2018 10:13 pm

Hooray wrote in Sun Sep 23, 2018 5:50 pm:You might want to review/update the wiki accordingly: http://wiki.flightgear.org/Howto:Dynami ... via_Canvas


I will certainly write some notes on the method adopted for the G91-R1B in the replacement of liveries with canvas.
However, currently there are many problems to allow to have the method of the canvas as an excellent method to replace the traditional method based on liveries.

For example for the G91PAN (the plane of the Frecce Tricolori, the Italian acrobatic team) the coating is extremely shiny (like the US-NAVY Blue Angels), but this effect, which I normally get with a reflection effect, does not seem to work on canvas. While other effects work quite well.

My desire is to get something like this:

Image

While currently through the use of materials it is possible to achieve this result:

Image

My question is this: it is possible to obtain the effects of reflection on a canvas, if possible, how?

There are other questions, such as the use of UV-Map etc .. but I want to do things step by step.

Thanks for your collaboration.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Reflection on a surface "painted" with a canvas ...

Postby Thorsten » Tue Sep 25, 2018 6:12 am

For the renderer a canvas is just a texture, there's nothing peculiar about it.


We routinely run effects (HUD, display) over canvases and they work as expected, so your issue likely is something else.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am


Return to Canvas

Who is online

Users browsing this forum: No registered users and 6 guests