Solved

Writing plugins

Posted on 1997-07-17
2
271 Views
Last Modified: 2013-12-26
Im planning on writing a raytracer using Rayshade as a base to work from. I will try to rewrite it in C++ and add the possibility to add your own objects, textures and shading plugins. Of course I will loose portability but that is of no great concern.
What, if there is any, is the best way to do this?

Christer O.
0
Comment
Question by:m94_ols
2 Comments
 
LVL 3

Accepted Solution

by:
mwt earned 100 total points
ID: 1291590
1. I'm sure that you've already heard of QuickDraw 3D so why not use that as your foundation then you get all the objects, textures and shading for free and you can concentrate on your raytracer/renderer.

2. Otherwise, if you are asking how to do it in Rayshade, you will need to dig deeply into the Rayshade code to find all the places where objects, textures and other rendering code is and jam your own  plugin architecture. I suspect if you take this route it won't be pleasant and it'll turn into a software engineering project rather than a raytracer project, but good luck!

3. Otherwise, if you are asking how to write plug-in architectures; I would take a look a how Apple has done it with CDEFs and WDEFS, how Microsoft has done it with Excel and how Netscape has done it with their Navigator plug-in architecture. In general terms they all do it by calling a code-resource (for 68K) or fragment (for PPC)after locating and loading it in. Check out Metrowerks CodeWarrior which has a huge selection of examples to do 68K, PPC and FAT plug-ins.

Good luck!
0
 

Author Comment

by:m94_ols
ID: 1291591
I have thought about QuickDraw 3D but not the other options. Excellent!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Generic progress indicator 6 113
Whole sheet autoscrub still needed 19 48
How to determine file rename from EventLog ? 2 41
Fibonacci challenge 11 109
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now