POV-Ray : Newsgroups : povray.windows : Visual C Server Time
25 Nov 2024 04:50:10 EST (-0500)
  Visual C (Message 1 to 9 of 9)  
From: Fox Neilson
Subject: Visual C
Date: 11 Jul 2002 13:32:15
Message: <3d2dc11f$1@news.povray.org>
Hi all,

A few years back I used povray a LOT, and was getting rather good at it.  I
haven't touched it at all for about 3 years and have finally decided that
I'd like to start again.  During those 3 years I have started using Visual C
for most of my programming, and now I can only stand to program either in
Visual C or vi.  I am just too used to those environments, and as great as
the povray editor is, its not the same as my editor.  I have had great
success with making many different compilers work with Visual C.  The only
thing needed is to be able to run the compiler as command line only.  I
would like to do the same with povray so that I can simply hit a button in
Visual C and render an image.

So here is my actual question.  How can I configure Visual C to work like
this with povray, so that the output from the render will appear in the
Visual C output window?  If some one can just tell me how to run povray in
windows without the GUI I can figure the rest out.  However if anyone is
actually doing this, and has more information on integrating the two I would
to see that as well.

Thank you very much,

Fox

p.s. Since I am not currently a very active user on this newsgroup (athough
I most likely will be in the near future) I would appreciate it if responces
where emailed to me.


Post a reply to this message

From: Slime
Subject: Re: Visual C
Date: 11 Jul 2002 16:15:34
Message: <3d2de766@news.povray.org>
I'm not sure if that's possible.

If you're saying that you want to program POV-Ray SDL in your C++
environment, that's entirely possible, but to render it you'll need to use
POV-Ray separately.

If you're saying, though, that you want to write C++ to generate POV-Ray SDL
code and then render it, you can probably use VC++'s "system" function that
takes a C-String as an argument that's a command to send to the operating
system (I think). You can use that to run pov-ray externally with a text
file of your choice.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Fox Neilson
Subject: Re: Visual C
Date: 11 Jul 2002 17:13:07
Message: <3d2df4e3$1@news.povray.org>
No no I'm sorry I wasn't clear.  I just want to use Visual C as the text
editor for doing povray renderings.  I don't want to actually write any
C/C++ code for this.  I just want to be able to open my .pov files with the
Visual C text editor, and to be able to use a command line to actually
perform the render so that I don't have to open the povray gui to do it.
Does that make more sense?

Fox

"Slime" <slm### [at] slimelandcom> wrote in message
news:3d2de766@news.povray.org...
> I'm not sure if that's possible.
>
> If you're saying that you want to program POV-Ray SDL in your C++
> environment, that's entirely possible, but to render it you'll need to use
> POV-Ray separately.
>
> If you're saying, though, that you want to write C++ to generate POV-Ray
SDL
> code and then render it, you can probably use VC++'s "system" function
that
> takes a C-String as an argument that's a command to send to the operating
> system (I think). You can use that to run pov-ray externally with a text
> file of your choice.
>
>  - Slime
> [ http://www.slimeland.com/ ]
>
>


Post a reply to this message

From: Slime
Subject: Re: Visual C
Date: 11 Jul 2002 17:29:15
Message: <3d2df8ab@news.povray.org>
> No no I'm sorry I wasn't clear.  I just want to use Visual C as the text
> editor for doing povray renderings.  I don't want to actually write any
> C/C++ code for this.  I just want to be able to open my .pov files with
the
> Visual C text editor, and to be able to use a command line to actually
> perform the render so that I don't have to open the povray gui to do it.
> Does that make more sense?


Ah, yup.

I think you can use pvengine.exe ("povengine.exe"?) from the command line
with the command line options mentioned in the documentation.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Visual C
Date: 11 Jul 2002 17:29:20
Message: <Xns9248EE5E55749raf256com@204.213.191.226>
"Fox Neilson" <ine### [at] myrealboxcom> wrote in
news:3d2df4e3$1@news.povray.org: 

> No no I'm sorry I wasn't clear.  I just want to use Visual C as the
> text editor for doing povray renderings.  I don't want to actually
> write any C/C++ code for this.  I just want to be able to open my .pov
> files with the Visual C text editor, and to be able to use a command
> line to actually perform the render so that I don't have to open the
> povray gui to do it. Does that make more sense?

You wan to use VC++ program as editor for .pov, or You want to use VC++ 
editor to edit .pov ?

2) imho makes no sens - just file->open .pov and edit it... and why do You 
want to do so ?

1) function "Render()" in Your's program should save text (from editor) 
into temporary .pov file, and then run pov's engine... what's the problem ?


-- 


Post a reply to this message

From:
Subject: Re: Visual C
Date: 12 Jul 2002 01:57:17
Message: <ehrsiuofd39fncccvrfaiklc3vvebnj9uq@4ax.com>
On Thu, 11 Jul 2002 15:14:12 -0600, "Fox Neilson" <ine### [at] myrealboxcom>
wrote:
> No no I'm sorry I wasn't clear.  I just want to use Visual C as the text
> editor for doing povray renderings.  I don't want to actually write any
> C/C++ code for this.  I just want to be able to open my .pov files with the
> Visual C text editor, and to be able to use a command line to actually
> perform the render so that I don't have to open the povray gui to do it.
> Does that make more sense?

I don't know features of current Visual C IDE but you can probably configure
one entry in menu or one icon on tool bar to handle current pov filename
(let's imagine it is scene.pov), look for newest file in its directory with
mask (scene*.png,scene*.tga,scene*.bmp etc.) and display it with tool like
irfanview or something similiar. This tool should be ready to open not
finished files without exclusive lock. I have never tested such solution since
pov editor is just fine for me.

ABX


Post a reply to this message

From: Philippe Lhoste
Subject: Re: Visual C
Date: 12 Jul 2002 10:05:33
Message: <3d2ee22d$1@news.povray.org>
"Fox Neilson" <ine### [at] myrealboxcom> wrote:
> A few years back I used povray a LOT, and was getting rather good at it.
I
> haven't touched it at all for about 3 years and have finally decided that
> I'd like to start again.  During those 3 years I have started using Visual
C
> for most of my programming, and now I can only stand to program either in
> Visual C or vi.  I am just too used to those environments, and as great as
> the povray editor is, its not the same as my editor.  I have had great
> success with making many different compilers work with Visual C.  The only
> thing needed is to be able to run the compiler as command line only.  I
> would like to do the same with povray so that I can simply hit a button in
> Visual C and render an image.
>
> So here is my actual question.  How can I configure Visual C to work like
> this with povray, so that the output from the render will appear in the
> Visual C output window?  If some one can just tell me how to run povray in
> windows without the GUI I can figure the rest out.  However if anyone is
> actually doing this, and has more information on integrating the two I
would
> to see that as well.

First suggestion (biased): Use the SciTE editor (www.scintilla.org). It has
the feel (keyboard shortcuts, behavior) of Visual Studio, but it is small
and powerful.
It allows to run command line programs and capture their output in a
separate window.

Second suggestion: you probably know you can use Visual Studio's Tools menu
to run external programs. With the Customize option, you can add any tool.
There is a checkbox to output to the output window.

to render an image and exit (ie. don't run the full GUI). I think that's the
way to go.
Or, if PoV-Ray for Dos is still available, it can be a better solution, as
the binary would be smaller.

--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--


Post a reply to this message

From: Apache
Subject: Re: Visual C
Date: 13 Jul 2002 08:06:59
Message: <3d3017e3@news.povray.org>
> 2) imho makes no sens - just file->open .pov and edit it... and
> why do You want to do so ?
Because he does. I think that's a very good reason!


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Visual C
Date: 13 Jul 2002 11:17:28
Message: <Xns924AAF527D16Craf256com@204.213.191.226>
"Apache" <apa### [at] yahoocom> wrote in 
news:3d3017e3@news.povray.org:

>> 2) imho makes no sens - just file->open .pov and edit it... and
>> why do You want to do so ?
> Because he does. I think that's a very good reason!

yes - ofcourse :) I was just asking :)

-- 


Post a reply to this message

From: cadman
Subject: Re: Visual C
Date: 17 Jul 2002 09:17:29
Message: <3d356e69$1@news.povray.org>
Is there a "pov.properties" file for SciTE, or would one have to patch
scintilla (or SciTE) for it to do the sytax highlighting of POV files?
Personally, I think POV for Windows is a good enough IDE, but I'm just
wondering...

> First suggestion (biased): Use the SciTE editor (www.scintilla.org). It
has
> the feel (keyboard shortcuts, behavior) of Visual Studio, but it is small
> and powerful.
> It allows to run command line programs and capture their output in a
> separate window.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.