AccuRender nXt

advanced rendering for AutoCAD

Question the second, where can I find any documentation on using AutoLISP commands with AccuRender?

I've written a few scripts in AutoLISP for animating scenes, essentially making small incremental changes and then rendering after each change. I'd love to do this with AccuRender combined with nxtfarm to churn out some animations.

Views: 635

Reply to This

Replies to This Discussion

It hasn't been documented-- but I do have a few and may be able to add some.  Let me know what you need.

Just in the short time I've played around with the nXt trial version I can tell this will be well worth it and produce some amazing animations.

 

Here's a snippet of the code I use in AutoLISP in a loop:

 

 

(command "-VIEW" "r" "camera1")

(setq fileName(strcat "C:\\animation\\camera1-" (itoa angle) ".jpg"))

(command "-render" "p" "r" "1280" "720" "yes" fileName)

(command here to move the piece in the scene)

 

 

So basically, commands to set the resolution and filename would be a great start. Also setting the number of passes would be useful. If there's a way to have nXt automatically save the image with the given filename after hitting the set number of passes, I think I would be set.

I pray this wonderful project could also be shared with the open community as a whole.

Agreed. I was pretty disappointed when I found the thread from 2011 asking for more AutoLISP interaction only to find that it seemed nothing had been done since then. The more AutoLISP functionality that can be added, the greater the opportunity for nXt render and renderfarm to produce some really amazing stuff with little effort.

EDIT: not that it doesn't already produce really amazing stuff :)

Without the render farm, this should be pretty easy. Some of this probably exists. OTOH-- doing object animation with the farm as it's currently configured will produce an enormous amount of data. We'll need to extract a new model file everytime something changes in the scene. The additional storage and network loads imposed by this could easily, depending on model size, negate any benefits derived from using multiple machines. Would you want to proceed without the farm, at least initially?
In any case, it may be a little while-- I'm traveling right now and I've got at least one other item on my plate to finish up first.

Well here's how I'm looking at it. The script I wrote in AutoLISP does fine at producing images with the native renderer, it just takes too long. at 1280x720 each frame takes up to ten minutes on my computer, and I would like to move up to 1920x1080 eventually. I came across AccuRender by searching "AutoCAD render farm" in google. So, the farm is basically the main reason I'm here; the giant leap in image quality is just a delightful bonus.

 

One nice thing I think I figured out about the farm is that I seem to be able to make it work with computers not on the same network. I don't have a licensed copy of nXt yet so I can't send anything to the farm for test rendering, but I can get plenty of other computers to appear in the farm monitor by pointing them to a folder inside of a Dropbox. Right now I'm at work, and my computer at home is showing up on the render farm monitor. I think this could potentially be a solution to rendering through Amazon EC2. Just set up a render farm on each with a Dropbox and suddenly you've got a massive, scalable farm.

 

Anyway, the one problem I foresee (and maybe there's a solution) is the way that the farm reconstructs images, as described below in the wiki:

 

After the job is complete, output can be found in the job's Output folder. To reconstruct the output into a single image use the following steps:

  1. Open the nXt Image Editor.
  2. Load the first image of the sequence, 000000.nXtImage
  3. From the menu, select Image→Arithmetic→Add for the standard engine –OR– Image→Arithmetic→Combine Path Tracings… for the Path Tracing engine.
  4. Select all of the other images in the sequence (do not select 000000.nXtImage again or it will be counted twice)

Having to go through that process for every single render could also negate any time saved by automating with AutoLISP. The real benefit of this code:

(setq fileName(strcat "C:\\animation\\camera1-" (itoa angle) ".jpg"))

(command "-render" "p" "r" "1280" "720" "yes" fileName)

Is the way I can set the renderer to automatically name and save each render without any additional work, so once the script is (eventually) completed I have every single image in order ready to be loaded into movie maker to produce the final animation. I'm guessing that some kind of system that would automatically combine the finished .nXtImage files from the farm and output a .jpg or .png is probably not a high priority at the moment.

One more thing to note is that the scenes I'm talking about aren't as insanely complex as the ones in the gallery on the site here. This is an example of a test video I made at 720p using my script with the native AutoCAD renderer. Using AccuRender on this scene, it seems to stop changing the image at all after about 10 passes, and anything beyond 20 seems to be complete overkill.

Actually I just had an idea. What about a render farm mode that sends each computer only one individual render at a time, then saves the completed image automatically? For large scale animation projects, it would make more sense to me anyway to have 30 computers each working on one image at a time, rather than each computer working on 1/30th of the same image and then have to manually compile it later. I don't know how feasible it might be though.

Some other things that might be nice to control via AutoLISP:

-Light Preset

-Date and time of day for Exterior lights

-Use Plants

-Use Materials

-Use Colors

-Total Passes

nXt's built in animation on the farm already outputs sequenced .png files for direct use by a movie compiler.  Each computer is given a few frames to render to amortize the cost of reading the model-- otherwise the process is similar to what you're describing.

I'm inclined to say no to the render farm request at the moment-- it's a lot of work and the performance will very likely be disappointing.  OTOH I'm willing to implement a few autolisp commands that aren't there and/or tell you about the ones that already exist.  You'll still be able to run your script-- it will only render locally though.  Again, let me know if it's something you still want to pursue.

That's a good start and I'm willing to take it. The main problem I have with -RENDER in AutoCAD is there is no way to suppress the render window, which keeps all of the previous renders in memory as it writes the new ones. There is no way to clear the old ones after they've been saved, and often I'll run out of memory before completing. If nXt starts from a clean slate every time, it would be a huge advantage.
I did notice that the nXt animation produces png files in sequence according to the wiki. The difference it seems that the nXt animation is simply moving the camera, whereas I keep a stationary camera and move objects in the scene.

The following already exist in the current build and should work fine for your purposes (let me know):

(nxtrender nPasses)

Renders modally for the set number of passes.  nPasses should be > 0.

Example:

(nxtrender 100)

(nxtsave sFilename [bAlpha])

Writes a .png file from the current buffer.  Include the extension in the name.  Set bAlpha to 1 to mask out the background with an alpha channel, or leave it out to retain the background normally.

Examples:

(nxtwrite "c:/my folder/frame_0001.png")

(nxtwrite "c:/my folder/my image.png" 1)

RSS

Search

Translate

Latest Activity

OYEBANJI EMMANUEL replied to OYEBANJI EMMANUEL's discussion Questions for nxt render for autocad
"Thank you so much."
Thursday
Daniel Holz replied to Daniel Holz's discussion PBR Textures in nxtRender for Autocad
"Sorry, do not exactly how to do it right. If i sent you one or  sets, could you "compose" one material as an example? Maybe this is interesting for others too.."
Jan 2
Daniel Holz replied to Daniel Holz's discussion PBR Textures in nxtRender for Autocad
"Thanks Rich, exacvtly what i found out. Only did't know what to dfo with the AO map.."
Dec 31, 2025
Rich Hart replied to Daniel Holz's discussion PBR Textures in nxtRender for Autocad
"nXtRender doesn't use the AO texture image settings for anything, so don't bother trying to use that. I would start use the Diffuse textures at 100% and experiment with the levels of the Specular Reflection. You might need to toggle the…"
Dec 30, 2025
Daniel Holz replied to OYEBANJI EMMANUEL's discussion Questions for nxt render for autocad
"Hi,i imported some old Dosch 3D plants in nxtRender for testing, fully textured without an issue. Also used some free sketchup tree models (*.skp) from sketchuptextureclub and opened them in sketchup, exportet them to *.obj and used them in…"
Dec 29, 2025
Daniel Holz posted a discussion

PBR Textures in nxtRender for Autocad

Hi,Can anyone explaine how to use PBR textures in nxtrender for acad correctly?I like to use textures from sketchuptextureclub.This textures typicaly containing following types:- Diff- Displ- Norm- Spec- AOregards,DanielSee More
Dec 29, 2025
David Richards replied to Zdravko Todorovic's discussion nXtRender 0358-XE08 vs 0349-OA30 - What's new?
"Hello - there isn't an official changelog, mainly because the functionality is pretty much the same. Over the years we have fixed bugs that are reported and maintained compatibility with all released versions of AutoCAD. Please continue this…"
Nov 12, 2025
Zdravko Todorovic posted a discussion

nXtRender 0358-XE08 vs 0349-OA30 - What's new?

I'm considering upgrading my nXtRender from the very old arnxt64_0349-OA30 with AutoCAD 2008 to the new arnxt64_0358-XE08.Could someone please tell me what the main improvements, new features, or bug fixes are in the new version? Is there an official changelog available?See More
Nov 11, 2025

© 2026   Header image courtesy Peter Milner   Powered by

Badges  |  Report an Issue  |  Terms of Service