[Bf-cycles] Changing image filename at runtime?

Santosh Singh santoshmca.giit at gmail.com
Wed Jun 26 13:20:22 CEST 2019


Hello Mr, Sakr,

I am using ortho view with cycles standalone i am getting one issue
randomly.

background the tiles are displaying.i am unable to understand the cause of
the issue.

http://prntscr.com/o6w4mk

pls chcek the above link and help me.

On Mon, Jun 17, 2019 at 4:43 PM Santosh Singh <santoshmca.giit at gmail.com>
wrote:

> Thanks Dear.
>
> On Mon, Jun 17, 2019 at 3:57 PM Mohamed Sakr <3dsakr at gmail.com> wrote:
>
>> read this part in the cycles_xml.cpp
>>
>>   else if(string_iequals(node.name(), "transform")) {
>> XMLReadState substate = state;
>>
>> xml_read_transform(node, substate.tfm);
>> xml_read_scene(substate, node);
>> }
>>
>> xml_read_transform is what you want
>>
>> On Mon, Jun 17, 2019 at 6:35 AM Santosh Singh <santoshmca.giit at gmail.com>
>> wrote:
>>
>>> Hello Mr Sakr.
>>>
>>> I am using the light with the cycles standalone app.
>>>
>>> i got idea from one xml file regarding the light. now i am able to use
>>> that method and getting the light.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *<!-- Spot Light --><shader name="spot_shader"> <emission
>>> name="emission" color="0.1 0.1 0.8" strength="300" /> <connect
>>> from="emission emission" to="output surface" /></shader><state
>>> shader="spot_shader"> <light type="spot" co="2 1 0" dir="-0.3 -1 0"
>>> size="0.05" spot_angle="1.0" spot_smooth="0.5" /></state>*
>>>
>>> i want to use the transform node data (translate, rotate and scale) or
>>> matrix format.
>>> Please assist me what to do for this.
>>>
>>>
>>> On Tue, Jun 11, 2019 at 6:28 PM Santosh Singh <santoshmca.giit at gmail.com>
>>> wrote:
>>>
>>>> Thanks Dear.
>>>>
>>>> I saved image and its saving only system dimension because of
>>>> glutreshape function(windows size).
>>>> i was trying to save high resolution image with bigger dimensions.
>>>>
>>>> I am trying to save from render buffer.
>>>>
>>>> On Tue, Jun 11, 2019 at 6:24 PM Mohamed Sakr <3dsakr at gmail.com> wrote:
>>>>
>>>>> I dunno how do you save the image, most likely you get the image from
>>>>> the display buffer (which at most will match your system screen)
>>>>> you need to save the image from the render buffer not the display
>>>>> buffer
>>>>>
>>>>> On Wed, Jun 5, 2019 at 9:18 AM Santosh Singh <
>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>
>>>>>> Hello Mr Sakr,
>>>>>>
>>>>>> While i am trying to save the render image from cycles standalone
>>>>>> application,its not saving with correct height and width.
>>>>>>
>>>>>> The saving image dimension is not going beyond the system
>>>>>> dimensions(My system dimension is 1920x1080). its saving dimension is
>>>>>> 1920x1060.
>>>>>>
>>>>>> How to save render image with higher dimensions like 3840x2160.
>>>>>>
>>>>>> Please guide me .
>>>>>>
>>>>>> regards,
>>>>>> Santosh
>>>>>>
>>>>>> On Mon, May 13, 2019 at 5:10 PM Santosh Singh <
>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>
>>>>>>> Thanks dear.
>>>>>>>
>>>>>>> On Mon, May 13, 2019 at 4:29 PM Mohamed Sakr <3dsakr at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> forget about aspect_ratio_viewport, in your case it equals
>>>>>>>> aspect_ratio.
>>>>>>>>
>>>>>>>> On Mon, May 13, 2019 at 11:39 AM Santosh Singh <
>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello Mr. Sakr,
>>>>>>>>>
>>>>>>>>> I tried with your logic, i am confused with the used parameter
>>>>>>>>> with above piece of Code.
>>>>>>>>>
>>>>>>>>> Please clear about aspect_ratio, horizontal and
>>>>>>>>> aspect_ratio_viewport .
>>>>>>>>>
>>>>>>>>> currently i am using *aspect_ratio = (float)width/(float)height;*
>>>>>>>>> *horizontal  = width;*
>>>>>>>>> what to use for* aspect_ratio_viewport* with  the cycles
>>>>>>>>> standalone code.
>>>>>>>>>
>>>>>>>>> please clear about the above .
>>>>>>>>>
>>>>>>>>> On Mon, May 13, 2019 at 2:14 PM Santosh Singh <
>>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Thanks dear.
>>>>>>>>>> I am trying with this.
>>>>>>>>>>
>>>>>>>>>> On Mon, May 13, 2019 at 2:12 PM Mohamed Sakr <3dsakr at gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hey,
>>>>>>>>>>>
>>>>>>>>>>> this code works for me.
>>>>>>>>>>> case 1://orthographic
>>>>>>>>>>> {
>>>>>>>>>>> cam->type = CAMERA_ORTHOGRAPHIC;
>>>>>>>>>>>
>>>>>>>>>>> if (zoom <= 0.f)
>>>>>>>>>>> break;
>>>>>>>>>>>
>>>>>>>>>>>         float xaspect = (horizontal) ? aspect_ratio : 1.f;
>>>>>>>>>>>         float yaspect = (horizontal && aspect_ratio != 0.f) ?
>>>>>>>>>>> 1.f : 1.f / aspect_ratio;
>>>>>>>>>>>
>>>>>>>>>>> float aspect_ = (aspect_ratio_viewport > aspect_ratio) ?
>>>>>>>>>>> ((aspect_ratio < 1.f) ? 1.f : aspect_ratio) : ((aspect_ratio < 1.f) ?
>>>>>>>>>>> aspect_ratio_viewport / aspect_ratio : aspect_ratio_viewport);
>>>>>>>>>>>
>>>>>>>>>>> xaspect = xaspect * 10.30f / (zoom * aspect_ * 2.0f);
>>>>>>>>>>> yaspect = yaspect * 10.30f / (zoom * aspect_ * 2.0f);
>>>>>>>>>>>
>>>>>>>>>>> cam->viewplane.left = -xaspect;
>>>>>>>>>>> cam->viewplane.right = xaspect;
>>>>>>>>>>> cam->viewplane.bottom = -yaspect;
>>>>>>>>>>> cam->viewplane.top = yaspect;
>>>>>>>>>>>         }
>>>>>>>>>>>
>>>>>>>>>>> cheers,
>>>>>>>>>>> Mohamed Sakr
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Mon, May 13, 2019 at 7:39 AM Santosh Singh <
>>>>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello Mr. Sakr,
>>>>>>>>>>>>
>>>>>>>>>>>> I am using the perspective camera view into cycles standalone
>>>>>>>>>>>> and its working fine with zoom in or zoom out(using w and s input into
>>>>>>>>>>>> interactive mode from keyboard).
>>>>>>>>>>>>
>>>>>>>>>>>> When i am trying to use orthograph camera view, i am getting
>>>>>>>>>>>> problem with zoom in and out. There is no changes at viewport.
>>>>>>>>>>>>
>>>>>>>>>>>>  Please guide me how to make working zoom factor into cycles
>>>>>>>>>>>> standalone with orthograph camera view. i am using the below xml data for
>>>>>>>>>>>> the camera view.
>>>>>>>>>>>> *<!-- Camera  -->*
>>>>>>>>>>>> * <transform matrix = "1.000000 0.000000 -0.000000 0.000000
>>>>>>>>>>>> 0.000000 1.000000 -0.000000 0.000000 0.000000 0.000000 1.000000 0.000000
>>>>>>>>>>>> -0.000000 1.500000 -3.700000 1.000000">*
>>>>>>>>>>>> * <camera width="800" height="500" type="orthograph"/>*
>>>>>>>>>>>> * </transform>*
>>>>>>>>>>>>
>>>>>>>>>>>> I saw into blender with ortho view there is one option
>>>>>>>>>>>> "Orthographic Scale", how to use into cycles standalone.
>>>>>>>>>>>> Please help me to solve my problem.
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, May 1, 2019 at 6:16 AM Santosh Singh <
>>>>>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks dear.
>>>>>>>>>>>>> I will check.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, 1 May, 2019, 12:25 AM Mohamed Sakr, <3dsakr at gmail.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> this is not something that I can help you with, it is plain
>>>>>>>>>>>>>> code, all the exporter is done under Cycles/Blender/ folder, check mesh.cpp
>>>>>>>>>>>>>> and object.cpp, they got the code for motion
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Apr 30, 2019 at 6:17 AM Santosh Singh <
>>>>>>>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hello Mr. Sakr.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I checked into blender cycles render, there is one property
>>>>>>>>>>>>>>> related "insert keyframes" to Transform.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I want same output frame by frame what keyframes are
>>>>>>>>>>>>>>> generating into blender.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> is this feature available int cycles standalone application.
>>>>>>>>>>>>>>> How to get render output  frame by frame with updated mesh(position data)
>>>>>>>>>>>>>>> into cycles.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Please help me.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Mon, Apr 29, 2019 at 2:39 PM Santosh Singh <
>>>>>>>>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Thanks Dear,
>>>>>>>>>>>>>>>> Its motion steps with updated mesh details  (like walk ).
>>>>>>>>>>>>>>>> Let me try with above suggestions.If i will face any
>>>>>>>>>>>>>>>> problem then i will discuss with you.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Mon, Apr 29, 2019 at 2:35 PM Mohamed Sakr <
>>>>>>>>>>>>>>>> 3dsakr at gmail.com> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> do you mean motion blur? you need to set the motion blur
>>>>>>>>>>>>>>>>> flags in integrator, and fill the mesh/object motion steps, add motion blur
>>>>>>>>>>>>>>>>> attribute (STD_Motion or something).
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On Mon, Apr 29, 2019 at 9:58 AM Santosh Singh <
>>>>>>>>>>>>>>>>> santoshmca.giit at gmail.com> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Hello Mr. Sakr,
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> How i will use animation into cycles standalone.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Please guide me.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Fri, Apr 12, 2019 at 9:46 PM F Escobar <
>>>>>>>>>>>>>>>>>> materialesescobar at hotmail.es> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Thank you but it didn't work for me neither :(
>>>>>>>>>>>>>>>>>>> ------------------------------
>>>>>>>>>>>>>>>>>>> *De:* Bf-cycles <bf-cycles-bounces at blender.org> en
>>>>>>>>>>>>>>>>>>> nombre de Mohamed Sakr <3dsakr at gmail.com>
>>>>>>>>>>>>>>>>>>> *Enviado:* viernes, 12 de abril de 2019 12:59
>>>>>>>>>>>>>>>>>>> *Para:* Discussion list to assist Cycles render engine
>>>>>>>>>>>>>>>>>>> developers
>>>>>>>>>>>>>>>>>>> *Asunto:* Re: [Bf-cycles] Changing image filename at
>>>>>>>>>>>>>>>>>>> runtime?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> if (pd->filename && pd->builtin_data) //you may not need
>>>>>>>>>>>>>>>>>>> builtin_data
>>>>>>>>>>>>>>>>>>> {
>>>>>>>>>>>>>>>>>>> _scene->image_manager->tag_reload_image(
>>>>>>>>>>>>>>>>>>> pd->filename.c_str(),
>>>>>>>>>>>>>>>>>>> pd->builtin_data,
>>>>>>>>>>>>>>>>>>> pd->interpolation,
>>>>>>>>>>>>>>>>>>> EXTENSION_CLIP,
>>>>>>>>>>>>>>>>>>> true);
>>>>>>>>>>>>>>>>>>>                }
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Fri, Apr 12, 2019 at 7:53 AM F Escobar <
>>>>>>>>>>>>>>>>>>> materialesescobar at hotmail.es> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>>>>>>> you may need to do image_manager->tag_update(scene),
>>>>>>>>>>>>>>>>>>> probably the same for shader_manager
>>>>>>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I supposed that too but unfortunatly image_manager has
>>>>>>>>>>>>>>>>>>> no tag_update(scene)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Regards, F.
>>>>>>>>>>>>>>>>>>> ------------------------------
>>>>>>>>>>>>>>>>>>> *De:* Bf-cycles <bf-cycles-bounces at blender.org> en
>>>>>>>>>>>>>>>>>>> nombre de Mohamed Sakr <3dsakr at gmail.com>
>>>>>>>>>>>>>>>>>>> *Enviado:* jueves, 11 de abril de 2019 14:59
>>>>>>>>>>>>>>>>>>> *Para:* Discussion list to assist Cycles render engine
>>>>>>>>>>>>>>>>>>> developers
>>>>>>>>>>>>>>>>>>> *Asunto:* Re: [Bf-cycles] Changing image filename at
>>>>>>>>>>>>>>>>>>> runtime?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> you may need to do image_manager->tag_update(scene),
>>>>>>>>>>>>>>>>>>> probably the same for shader_manager
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Thu, Apr 11, 2019 at 1:30 PM F Escobar <
>>>>>>>>>>>>>>>>>>> materialesescobar at hotmail.es> wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> I'm trying to change the image I'm using for scene
>>>>>>>>>>>>>>>>>>> illumination but besides I can rotate it properly changing the filename
>>>>>>>>>>>>>>>>>>> seems to have no effect.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Any tip on this? thank you in advance!
>>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>>>> Thanks & Regards
>>>>>>>>>>>>>>>>>>  Santosh Kumar Singh
>>>>>>>>>>>>>>>>>>   Software Engineer
>>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Thanks & Regards
>>>>>>>>>>>>>>>>  Santosh Kumar Singh
>>>>>>>>>>>>>>>>   Software Engineer
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Thanks & Regards
>>>>>>>>>>>>>>>  Santosh Kumar Singh
>>>>>>>>>>>>>>>   Software Engineer
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Thanks & Regards
>>>>>>>>>>>>  Santosh Kumar Singh
>>>>>>>>>>>>   Software Engineer
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Bf-cycles mailing list
>>>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Thanks & Regards
>>>>>>>>>>  Santosh Kumar Singh
>>>>>>>>>>   Software Engineer
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Thanks & Regards
>>>>>>>>>  Santosh Kumar Singh
>>>>>>>>>   Software Engineer
>>>>>>>>> _______________________________________________
>>>>>>>>> Bf-cycles mailing list
>>>>>>>>> Bf-cycles at blender.org
>>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Bf-cycles mailing list
>>>>>>>> Bf-cycles at blender.org
>>>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thanks & Regards
>>>>>>>  Santosh Kumar Singh
>>>>>>>   Software Engineer
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks & Regards
>>>>>>  Santosh Kumar Singh
>>>>>>   Software Engineer
>>>>>> _______________________________________________
>>>>>> Bf-cycles mailing list
>>>>>> Bf-cycles at blender.org
>>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>>
>>>>> _______________________________________________
>>>>> Bf-cycles mailing list
>>>>> Bf-cycles at blender.org
>>>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards
>>>>  Santosh Kumar Singh
>>>>   Software Engineer
>>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>>  Santosh Kumar Singh
>>>   Software Engineer
>>> _______________________________________________
>>> Bf-cycles mailing list
>>> Bf-cycles at blender.org
>>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>>
>> _______________________________________________
>> Bf-cycles mailing list
>> Bf-cycles at blender.org
>> https://lists.blender.org/mailman/listinfo/bf-cycles
>>
>
>
> --
> Thanks & Regards
>  Santosh Kumar Singh
>   Software Engineer
>


-- 
Thanks & Regards
 Santosh Kumar Singh
  Software Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-cycles/attachments/20190626/496a6f2e/attachment.htm>


More information about the Bf-cycles mailing list