Author Topic: Realflow - single frame rendering, animation - not  (Read 21708 times)

2014-04-16, 19:59:11

ragnakim

  • Active Users
  • **
  • Posts: 20
    • View Profile
Hi everyone,

I searched the forum first, and found nothing regarding this problem I found. So I hope I'm not reposting a talked about bug.

I was trying to render, in 3ds max 2014, a liquid simulation using geometry made with Realflow. Basically using the realflow loader plugin. And the problem I found, is that in a still frame it renders perfectly. And you move the time slider and render another frame, and again it renders perfectly. The bug is when you render a sequence. Everything is animated correctly camera, objects, etc. Expect the real flow liquid. Its always stuck in the first frame. I've tried several thing and none worked. Even rendering with 3ds max command line.

The only way I was able to render the animation with the realflow simulation animating correctly, was using 3ds max's Batch Render, and painstakingly creating a "pass" for each frame.

Does anyone as the same problem?

Cheers

p.s.

Pardon my bad English :P
« Last Edit: 2015-01-19, 13:47:07 by maru »

2014-05-09, 07:13:24
Reply #1

borisquezadaa

  • Active Users
  • **
  • Posts: 614
    • View Profile
The same happens here... yesterday i try to render some hybrido meshes (bin mesh secuence generated from realflow) and the animation works for a single selected frame but not in animation render mode (just keep rendering the las selected frame in viewport).

Not a problem at all with particle emitters, just Hybrido related it seems.
What i do with Corona My Corona post of random stuff rendering
WARNING: English.dll still loading...

2014-05-12, 12:30:38
Reply #2

ragnakim

  • Active Users
  • **
  • Posts: 20
    • View Profile
The same happens here... yesterday i try to render some hybrido meshes (bin mesh secuence generated from realflow) and the animation works for a single selected frame but not in animation render mode (just keep rendering the las selected frame in viewport).

Not a problem at all with particle emitters, just Hybrido related it seems.

exactly. Its a strange bug. because you can choose any frame to render. and it renders correctly. I could only solve this temporarily by script. :-\

2014-05-13, 16:46:11
Reply #3

borisquezadaa

  • Active Users
  • **
  • Posts: 614
    • View Profile
A script?... where? ...  i'm facing the same situation on realflow and phoenix.
What i do with Corona My Corona post of random stuff rendering
WARNING: English.dll still loading...

2014-05-21, 18:28:51
Reply #4

ragnakim

  • Active Users
  • **
  • Posts: 20
    • View Profile
A script?... where? ...  i'm facing the same situation on realflow and phoenix.

I'll try to find the script and post it here.

2014-07-15, 13:23:41
Reply #5

econstud

  • Users
  • *
  • Posts: 2
    • View Profile
A script?... where? ...  i'm facing the same situation on realflow and phoenix.

I'll try to find the script and post it here.

i'm also facing this problem with realflow meshes and hope you can find the script and share it whith us.

2014-07-15, 14:37:03
Reply #6

Siahpoosh

  • Active Users
  • **
  • Posts: 141
    • View Profile
    • Siahpoosh.Net
its not corona bug , its realflow plugin bug

2014-07-17, 20:59:39
Reply #7

econstud

  • Users
  • *
  • Posts: 2
    • View Profile
its not corona bug , its realflow plugin bug
thank you!

2014-10-09, 14:05:47
Reply #8

danrealflow

  • Users
  • *
  • Posts: 2
    • View Profile
We have just announced that we are offering free RealFlow 2014 licenses to all faculties & educational institutes.
I would encourage you to take full advantage of this!

Thanks,

Dan

education (@) nextlimit.com

2014-10-09, 14:12:18
Reply #9

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
We have just announced that we are offering free RealFlow 2014 licenses to all faculties & educational institutes.
I would encourage you to take full advantage of this!

Thanks,

Dan

education (@) nextlimit.com

While we have you here, what's the executive summary to supporting realflow in 3rd party renderers? Do you have some specific API we can get access to? Do you provide NFR licences for development/debugging?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2014-10-24, 14:41:58
Reply #10

DanGrover

  • Active Users
  • **
  • Posts: 21
    • View Profile
Hi All,

I've attached the script I wrote to get around this problem. It'll render whatever's in your "Range" parameters in the Render Setup window - not what's in your Active Time Segment. It'll work with render elements too, renaming the outputs of both those and the main render output to respect the frame you're on.

Any questions, please email dbg@riverfilm.com. It's all commented so it should be easy to work out what's going on if you'd like to look or edit it.

Code: [Select]
--- a script to make Corona render Real Flow OK!
--- Created using Corona Alpha 7.
--- Created by Dan Grover at River Film. Any bugs or questions, please email dbg@riverfilm.com

--function to make a single digit number into a 3 digit number by prefixing 0's. Returns a string.
fn tridigit digits =
(
if digits.count >= 3 then
(
print "Digit already greater than 3 numbers"
return digits
)
else
(
if digits.count == 2 do return ("0" + digits)
if digits.count == 1 do return ("00" + digits)
)
)

-- close the RSD
renderSceneDialog.close()
-- set it to single frame
rendTimeType = 1
-- set the save output to true
rendSaveFile = true
-- temorarily store the main render output directory
actual_render = rendOutputFilename
--sets the variable that contains the render elements. re=Render Elements
re = maxOps.GetCurRenderElementMgr()
--calculates the number of elements
num = re.numrenderelements()
-- an array to store the element's current paths
cur_ele_path = #()
-- loop through the elements
for c in 0 to (num - 1) do
(
append cur_ele_path (re.getRenderElementFilename c)
)
-- perform a loop between all the frames you want rendered
for a in ((rendStart as integer)/ticksperframe) to ((rendEnd as integer)/ticksperframe) do
(
--go to the next frame to render
sliderTime = (a as time)
-- add's the frame number to the output filename.
rendOutputFilename = ((getFileNamePath actual_render) + (getFilenameFile actual_render) + "_" + (tridigit ((a as integer) as string)) + (getFilenameType actual_render))
--loops through the elements
for b in 0 to (num - 1) do
(
-- select the element
element = re.getrenderelement b
-- grabs the current element path
current_element_path = cur_ele_path[(b+1)]
-- add's 0's to it
new_element_path =  ((getFileNamePath current_element_path) + (getFilenameFile current_element_path) + "_" + (tridigit ((a as integer) as string)) + (getFilenameType current_element_path))
-- assigns it to the element
re.SetRenderElementFilename b new_element_path
)
-- render the output
max quick render
)
-- reset the render outputs for the main renders...
rendOutputFilename = actual_render
-- ... and the elements
for d in 0 to (num - 1) do
(
re.setRenderElementFilename d cur_ele_path[(d+1)]
)

Thanks,
Dan

2014-10-24, 15:09:10
Reply #11

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
@DanGrover: A little tip: you can make the digits thing a lot easier (and extendable) by using formattedprint:
Code: [Select]
formattedprint 1 format:".2d"  -- prints "01"
formattedprint 1 format:".3d"  -- prints "001"
Any sufficiently advanced bug is indistinguishable from a feature.

2014-10-24, 16:07:22
Reply #12

DanGrover

  • Active Users
  • **
  • Posts: 21
    • View Profile
No s**t! I had no idea - thanks man!

2014-12-15, 00:33:09
Reply #13

aTanguay

  • Active Users
  • **
  • Posts: 44
    • View Profile
Just to note, this is a problem with Phoenix FD liquid sims too.
The exact same behavior...render any single frame, no problem. Render a sequence...locked to the current frame.
(bummer)

2015-01-19, 13:47:31
Reply #14

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13642
  • Marcin
    • View Profile
script fixes the issue
not Corona-related
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us